| Total Complexity | 1 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class ChangeTrackingPolicy |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * DEFERRED_IMPLICIT means that changes of entities are calculated at commit-time |
||
| 11 | * by doing a property-by-property comparison with the original data. This will |
||
| 12 | * be done for all entities that are in MANAGED state at commit-time. |
||
| 13 | * |
||
| 14 | * This is the default change tracking policy. |
||
| 15 | */ |
||
| 16 | public const DEFERRED_IMPLICIT = 'DEFERRED_IMPLICIT'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * DEFERRED_EXPLICIT means that changes of entities are calculated at commit-time |
||
| 20 | * by doing a property-by-property comparison with the original data. This will |
||
| 21 | * be done only for entities that were explicitly saved (through persist() or a cascade). |
||
| 22 | */ |
||
| 23 | public const DEFERRED_EXPLICIT = 'DEFERRED_EXPLICIT'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * NOTIFY means that Doctrine relies on the entities sending out notifications when their |
||
| 27 | * properties change. Such entity classes must implement the <tt>NotifyPropertyChanged</tt> |
||
| 28 | * interface. |
||
| 29 | */ |
||
| 30 | public const NOTIFY = 'NOTIFY'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Will break upon instantiation. |
||
| 34 | */ |
||
| 35 | private function __construct() |
||
| 39 |