Skip to content
Permalink
Browse files

Adding new beforeFind param to docs

  • Loading branch information...
lorenzo committed Feb 9, 2014
1 parent d7aabbf commit a9bc32131116cfe4eb3e6b0ab80113b64d199149
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/ORM/Table.php
@@ -72,9 +72,9 @@
* Table objects provide a few callbacks/events you can hook into to augment/replace
* find operations. Each event uses the standard event subsystem in CakePHP
*
* - `beforeFind($event, $query, $options)` - Fired before each find operation. By stopping
* the event and supplying a return value you can bypass the find operation entirely. Any
* changes done to the $query instance will be retained for the rest of the find.
* - `beforeFind($event, $query, $options, $primary)` - Fired before each find operation.
* By stopping the event and supplying a return value you can bypass the find operation
* entirely. Any changes done to the $query instance will be retained for the rest of the find.
* - `beforeValidate($event, $entity, $options, $validator)` - Fired before an entity is validated.
* By stopping this event, you can abort the validate + save operations.
* - `afterValidate($event, $entity, $options, $validator)` - Fired after an entity is validated.

0 comments on commit a9bc321

Please sign in to comment.
You can’t perform that action at this time.