tests/Doctrine/Tests/ODM/CouchDB/Functional/EmbeddedDocumentTest.php 1 location
|
@@ 141-154 (lines=14) @@
|
138 |
|
} |
139 |
|
} |
140 |
|
|
141 |
|
class PreUpdateSubscriber2 implements EventSubscriber |
142 |
|
{ |
143 |
|
public $eventArgs = array(); |
144 |
|
public function getSubscribedEvents() |
145 |
|
{ |
146 |
|
return array(\Doctrine\ODM\CouchDB\Event::preUpdate); |
147 |
|
} |
148 |
|
|
149 |
|
public function preUpdate(\Doctrine\ODM\CouchDB\Event\LifecycleEventArgs $args) |
150 |
|
{ |
151 |
|
$this->eventArgs[] = $args; |
152 |
|
} |
153 |
|
|
154 |
|
} |
155 |
|
|
tests/Doctrine/Tests/ODM/CouchDB/Functional/EmbedManyTest.php 1 location
|
@@ 148-161 (lines=14) @@
|
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
class PreUpdateSubscriber implements \Doctrine\Common\EventSubscriber |
149 |
|
{ |
150 |
|
public $eventArgs = array(); |
151 |
|
public function getSubscribedEvents() |
152 |
|
{ |
153 |
|
return array(\Doctrine\ODM\CouchDB\Event::preUpdate); |
154 |
|
} |
155 |
|
|
156 |
|
public function preUpdate(\Doctrine\ODM\CouchDB\Event\LifecycleEventArgs $args) |
157 |
|
{ |
158 |
|
$this->eventArgs[] = $args; |
159 |
|
} |
160 |
|
|
161 |
|
} |
162 |
|
|