예제 #1
0
 /**
  * Unsets the temporary `_i18n` property after the entity has been saved
  *
  * @param \Cake\Event\Event $event The beforeSave event that was fired
  * @param \Cake\Datasource\EntityInterface $entity The entity that is going to be saved
  * @return void
  */
 public function afterSave(Event $event, EntityInterface $entity)
 {
     $entity->unsetProperty('_i18n');
 }