diff --git a/phalcon/Mvc/Model.zep b/phalcon/Mvc/Model.zep index cec3dc141a9..3fea4047fb9 100644 --- a/phalcon/Mvc/Model.zep +++ b/phalcon/Mvc/Model.zep @@ -959,13 +959,10 @@ abstract class Model extends AbstractInjectionAware implements EntityInterface, */ if this->_exists(metaData, this->getWriteConnection()) { let this->errorMessages = [ - create_instance_params( - "Phalcon\\Messages\\Message", - [ - "Record cannot be created because it already exists", - null, - "InvalidCreateAttempt" - ] + new Message( + "Record cannot be created because it already exists", + null, + "InvalidCreateAttempt" ) ];