File tree Expand file tree Collapse file tree
Doctrine/ODM/MongoDB/Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 "doctrine/collections" : " ^1.5" ,
3030 "doctrine/event-manager" : " ^1.0" ,
3131 "doctrine/instantiator" : " ^1.1" ,
32- "doctrine/persistence" : " ^1.3.5" ,
32+ "doctrine/persistence" : " ^1.3.5|^2.0 " ,
3333 "doctrine/reflection" : " 1.2.1" ,
3434 "jean85/pretty-package-versions" : " ^1.3.0" ,
3535 "mongodb/mongodb" : " ^1.2.0" ,
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ implement the ``NotifyPropertyChanged`` interface from the
2323
2424 <?php
2525
26- use Doctrine\Common \NotifyPropertyChanged,
27- Doctrine\Common \PropertyChangedListener;
26+ use Doctrine\Persistence \NotifyPropertyChanged,
27+ Doctrine\Persistence \PropertyChangedListener;
2828
2929 abstract class DomainObject implements NotifyPropertyChanged
3030 {
@@ -72,4 +72,4 @@ listeners:
7272 The check whether the new value is different from the old one is
7373not mandatory but recommended. That way you can avoid unnecessary
7474updates and also have full control over when you consider a
75- property changed.
75+ property changed.
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ follows:
7373
7474 <?php
7575
76- use Doctrine\Common \NotifyPropertyChanged,
77- Doctrine\Common \PropertyChangedListener;
76+ use Doctrine\Persistence \NotifyPropertyChanged,
77+ Doctrine\Persistence \PropertyChangedListener;
7878
7979 /**
8080 * @Document
Original file line number Diff line number Diff line change 55namespace Doctrine \ODM \MongoDB \Proxy \Factory ;
66
77use Closure ;
8- use Doctrine \Common \NotifyPropertyChanged ;
98use Doctrine \ODM \MongoDB \DocumentManager ;
109use Doctrine \ODM \MongoDB \DocumentNotFoundException ;
1110use Doctrine \ODM \MongoDB \Mapping \ClassMetadata ;
1211use Doctrine \ODM \MongoDB \Persisters \DocumentPersister ;
1312use Doctrine \ODM \MongoDB \UnitOfWork ;
1413use Doctrine \ODM \MongoDB \Utility \LifecycleEventManager ;
14+ use Doctrine \Persistence \NotifyPropertyChanged ;
1515use ProxyManager \Factory \LazyLoadingGhostFactory ;
1616use ProxyManager \Proxy \GhostObjectInterface ;
1717use ReflectionProperty ;
Original file line number Diff line number Diff line change 77use Doctrine \Common \Collections \ArrayCollection ;
88use Doctrine \Common \Collections \Collection ;
99use Doctrine \Common \EventManager ;
10- use Doctrine \Common \NotifyPropertyChanged ;
11- use Doctrine \Common \PropertyChangedListener ;
1210use Doctrine \ODM \MongoDB \Hydrator \HydratorFactory ;
1311use Doctrine \ODM \MongoDB \Mapping \ClassMetadata ;
1412use Doctrine \ODM \MongoDB \Mapping \MappingException ;
2321use Doctrine \ODM \MongoDB \Utility \LifecycleEventManager ;
2422use Doctrine \Persistence \Mapping \ReflectionService ;
2523use Doctrine \Persistence \Mapping \RuntimeReflectionService ;
24+ use Doctrine \Persistence \NotifyPropertyChanged ;
25+ use Doctrine \Persistence \PropertyChangedListener ;
2626use InvalidArgumentException ;
2727use MongoDB \BSON \UTCDateTime ;
2828use ProxyManager \Proxy \GhostObjectInterface ;
Original file line number Diff line number Diff line change 77use Closure ;
88use DateTime ;
99use Doctrine \Common \Collections \ArrayCollection ;
10- use Doctrine \Common \NotifyPropertyChanged ;
11- use Doctrine \Common \PropertyChangedListener ;
1210use Doctrine \ODM \MongoDB \Mapping \Annotations as ODM ;
1311use Doctrine \ODM \MongoDB \Mapping \ClassMetadata ;
1412use Doctrine \ODM \MongoDB \MongoDBException ;
1513use Doctrine \ODM \MongoDB \Tests \Mocks \ExceptionThrowingListenerMock ;
1614use Doctrine \ODM \MongoDB \Tests \Mocks \PreUpdateListenerMock ;
1715use Doctrine \ODM \MongoDB \UnitOfWork ;
16+ use Doctrine \Persistence \NotifyPropertyChanged ;
17+ use Doctrine \Persistence \PropertyChangedListener ;
1818use Documents \Address ;
1919use Documents \File ;
2020use Documents \FileWithoutMetadata ;
Original file line number Diff line number Diff line change 55namespace Documents ;
66
77use Doctrine \Common \Collections \ArrayCollection ;
8- use Doctrine \Common \NotifyPropertyChanged ;
9- use Doctrine \Common \PropertyChangedListener ;
108use Doctrine \ODM \MongoDB \Mapping \Annotations as ODM ;
9+ use Doctrine \Persistence \NotifyPropertyChanged ;
10+ use Doctrine \Persistence \PropertyChangedListener ;
1111
1212/** @ODM\Document @ODM\ChangeTrackingPolicy("NOTIFY") */
1313class ProfileNotify implements NotifyPropertyChanged
You can’t perform that action at this time.
0 commit comments