Skip to content

Commit

Permalink
Changed new object call
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Sep 26, 2019
1 parent 0ab3f77 commit b71b5ad
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions phalcon/Mvc/Model.zep
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
];

Expand Down

0 comments on commit b71b5ad

Please sign in to comment.