Skip to content

Commit 018bf8d

Browse files
committed
Rename deprecated entiry method errors()
1 parent dba173c commit 018bf8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Table/QueuedJobsTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function createJob($jobName, array $data = null, array $config = []) {
123123
] + $config;
124124

125125
$queuedJob = $this->newEntity($queuedJob);
126-
if ($queuedJob->errors()) {
126+
if ($queuedJob->getErrors()) {
127127
throw new Exception('Invalid entity data');
128128
}
129129
return $this->save($queuedJob);

0 commit comments

Comments
 (0)