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