123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace WorkflowBundle\Utils;
- class DoctrineEvents
- {
- use ChoiceTrait;
- const PRE_PERSIST = 'prePersist';
- const POST_PERSIST = 'postPersist';
- const PRE_UPDATE = 'preUpdate';
- const POST_UPDATE = 'postUpdate';
- const PRE_REMOVE = 'preRemove';
- const POST_REMOVE = 'postRemove';
-
- const POST_LOAD = 'postLoad';
-
-
- /*
- * @return array
- */
- public function getDoctrineEventChoices()
- {
- $choices = self::getChoices();
- unset($choices[self::POST_LOAD]);
-
- return $choices;
- }
-
- }
|