Modifies the entity before it is saved so that uploaded file data is persisted
in the database too.
public beforeSave ( Cake\Event\Event $event, Cake\ORM\Entity $entity, ArrayObject $options ) : void | false | ||
$event | Cake\Event\Event | The beforeSave event that was fired |
$entity | Cake\ORM\Entity | The entity that is going to be saved |
$options | ArrayObject | the options passed to the save method |
Résultat | void | false |