Cake\ORM\Behavior\TranslateBehavior::afterSave PHP Method

afterSave() public method

Unsets the temporary _i18n property after the entity has been saved
public afterSave ( Cake\Event\Event $event, Cake\Datasource\EntityInterface $entity ) : void
$event Cake\Event\Event The beforeSave event that was fired
$entity Cake\Datasource\EntityInterface The entity that is going to be saved
return void
    public function afterSave(Event $event, EntityInterface $entity)
    {
        $entity->unsetProperty('_i18n');
    }