|
53 | 53 | * Table objects provide a few callbacks/events you can hook into to augment/replace
|
54 | 54 | * find operations. Each event uses the standard event subsystem in CakePHP
|
55 | 55 | *
|
56 |
| - * - beforeFind($event, $query, $options) - Fired before each find operation. By stopping |
| 56 | + * - `beforeFind($event, $query, $options)` - Fired before each find operation. By stopping |
57 | 57 | * the event and supplying a return value you can bypass the find operation entirely. Any
|
58 | 58 | * changes done to the $query instance will be retained for the rest of the find.
|
| 59 | + * - `beforeValidate($event, $entity, $options, $validator)` - Fired before an entity is validated. |
| 60 | + * By stopping this event, you can abort the validate + save operations. |
| 61 | + * - `afterValidate($event, $entity, $options, $validator)` - Fired after an entity is validated. |
| 62 | + * - `beforeSave($event, $entity, $options)` - Fired before each entity is saved. Stopping this |
| 63 | + * event will abort the save operation. When the event is stopped the result of the event will |
| 64 | + * be returned. |
| 65 | + * - `afterSave($event, $entity, $options)` - Fired after an entity is saved. |
| 66 | + * - `beforeDelete($event, $entity, $options)` - Fired before an entity is deleted. |
| 67 | + * By stopping this event you will abort the delete operation. |
| 68 | + * - `afterDelete($event, $entity, $options)` - Fired after an entity has been deleted. |
59 | 69 | *
|
60 | 70 | * @see Cake\Event\EventManager for reference on the events system.
|
61 | 71 | */
|
|
0 commit comments