Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove deprecated function calls
  • Loading branch information
antograssiot committed Jan 5, 2018
1 parent 2d21e3a commit 7cff195
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Console/CommandRunner.php
Expand Up @@ -22,7 +22,7 @@
use Cake\Console\Exception\StopException;
use Cake\Console\Shell;
use Cake\Core\ConsoleApplicationInterface;
use Cake\Event\EventManagerTrait;
use Cake\Event\EventDispatcherTrait;
use Cake\Utility\Inflector;
use RuntimeException;

Expand All @@ -31,7 +31,7 @@
*/
class CommandRunner
{
use EventManagerTrait;
use EventDispatcherTrait;

/**
* The application console commands are being run for.
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/Association/BelongsToMany.php
Expand Up @@ -784,7 +784,7 @@ protected function _saveTarget(EntityInterface $parentEntity, $entities, $option
// Saving the new linked entity failed, copy errors back into the
// original entity if applicable and abort.
if (!empty($options['atomic'])) {
$original[$k]->errors($entity->errors());
$original[$k]->setErrors($entity->getErrors());
}
if (!$saved) {
return false;
Expand Down

0 comments on commit 7cff195

Please sign in to comment.