@@ -21,7 +21,6 @@ |
||
| 21 | 21 | |
| 22 | 22 | use Doctrine\Common\Collections\ArrayCollection; |
| 23 | 23 | use Doctrine\Common\Collections\Criteria; |
| 24 | - |
|
| 25 | 24 | use Doctrine\ORM\Query\Expr; |
| 26 | 25 | use Doctrine\ORM\Query\QueryExpressionVisitor; |
| 27 | 26 | |
@@ -94,6 +94,7 @@ |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | + * @param State $owner |
|
| 97 | 98 | * @return \Doctrine\ORM\PersistentCollection |
| 98 | 99 | */ |
| 99 | 100 | protected function createCollection($owner, $assoc = null, $class = null, $elements = null) |
@@ -3,12 +3,10 @@ |
||
| 3 | 3 | namespace Doctrine\Tests\ORM\Cache\Persister\Entity; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\Tests\OrmTestCase; |
| 6 | - |
|
| 7 | 6 | use Doctrine\ORM\Cache\Region; |
| 8 | 7 | use Doctrine\ORM\EntityManager; |
| 9 | 8 | use Doctrine\ORM\Mapping\ClassMetadata; |
| 10 | 9 | use Doctrine\ORM\Persisters\Entity\EntityPersister; |
| 11 | - |
|
| 12 | 10 | use Doctrine\Tests\Models\Cache\Country; |
| 13 | 11 | use Doctrine\Common\Collections\Criteria; |
| 14 | 12 | use Doctrine\Common\Collections\ArrayCollection; |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | /** |
| 117 | - * @return \Doctrine\ORM\Cache\Persister\AbstractEntityPersister |
|
| 117 | + * @return \Doctrine\ORM\Cache\Persister\Entity\AbstractEntityPersister |
|
| 118 | 118 | */ |
| 119 | 119 | protected function createPersisterDefault() |
| 120 | 120 | { |
@@ -3,12 +3,10 @@ |
||
| 3 | 3 | namespace Doctrine\Tests\ORM\Cache\Persister\Entity; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\Tests\OrmTestCase; |
| 6 | - |
|
| 7 | 6 | use Doctrine\ORM\Cache\Region; |
| 8 | 7 | use Doctrine\ORM\EntityManager; |
| 9 | 8 | use Doctrine\ORM\Mapping\ClassMetadata; |
| 10 | 9 | use Doctrine\ORM\Persisters\Entity\EntityPersister; |
| 11 | - |
|
| 12 | 10 | use Doctrine\Tests\Models\Cache\Country; |
| 13 | 11 | use Doctrine\Common\Collections\Criteria; |
| 14 | 12 | use Doctrine\Common\Collections\ArrayCollection; |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * @param string $className |
|
| 30 | + * @param string $classNames |
|
| 31 | 31 | * @return ClassMetadata |
| 32 | 32 | */ |
| 33 | 33 | protected function extractClassMetadata(array $classNames) |
@@ -133,6 +133,12 @@ discard block |
||
| 133 | 133 | return array($user1, $user2, $user3); |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | + /** |
|
| 137 | + * @param string $name |
|
| 138 | + * @param string $username |
|
| 139 | + * @param string $status |
|
| 140 | + * @param CmsAddress $address |
|
| 141 | + */ |
|
| 136 | 142 | public function buildUser($name, $username, $status, $address) |
| 137 | 143 | { |
| 138 | 144 | $user = new CmsUser(); |
@@ -147,6 +153,12 @@ discard block |
||
| 147 | 153 | return $user; |
| 148 | 154 | } |
| 149 | 155 | |
| 156 | + /** |
|
| 157 | + * @param string $country |
|
| 158 | + * @param string $city |
|
| 159 | + * @param string $street |
|
| 160 | + * @param string $zip |
|
| 161 | + */ |
|
| 150 | 162 | public function buildAddress($country, $city, $street, $zip) |
| 151 | 163 | { |
| 152 | 164 | $address = new CmsAddress(); |
@@ -375,8 +375,16 @@ |
||
| 375 | 375 | private $name; |
| 376 | 376 | public function getId() {return $this->id;} |
| 377 | 377 | public function getValue() {return $this->value;} |
| 378 | + |
|
| 379 | + /** |
|
| 380 | + * @param string $value |
|
| 381 | + */ |
|
| 378 | 382 | public function setValue($value) {$this->value = $value;} |
| 379 | 383 | public function getName() {return $this->name;} |
| 384 | + |
|
| 385 | + /** |
|
| 386 | + * @param string $name |
|
| 387 | + */ |
|
| 380 | 388 | public function setName($name) {$this->name = $name;} |
| 381 | 389 | /** @PreUpdate */ |
| 382 | 390 | public function testCallback() {$this->value = 'Hello World';} |
@@ -139,6 +139,9 @@ discard block |
||
| 139 | 139 | ); |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $entityName |
|
| 144 | + */ |
|
| 142 | 145 | protected function asyncFindWithLock($entityName, $entityId, $lockMode) |
| 143 | 146 | { |
| 144 | 147 | $this->startJob('findWithLock', array( |
@@ -148,6 +151,9 @@ discard block |
||
| 148 | 151 | )); |
| 149 | 152 | } |
| 150 | 153 | |
| 154 | + /** |
|
| 155 | + * @param string $dql |
|
| 156 | + */ |
|
| 151 | 157 | protected function asyncDqlWithLock($dql, $params, $lockMode) |
| 152 | 158 | { |
| 153 | 159 | $this->startJob('dqlWithLock', array( |
@@ -157,6 +163,9 @@ discard block |
||
| 157 | 163 | )); |
| 158 | 164 | } |
| 159 | 165 | |
| 166 | + /** |
|
| 167 | + * @param string $entityName |
|
| 168 | + */ |
|
| 160 | 169 | protected function asyncLock($entityName, $entityId, $lockMode) |
| 161 | 170 | { |
| 162 | 171 | $this->startJob('lock', array( |
@@ -166,6 +175,9 @@ discard block |
||
| 166 | 175 | )); |
| 167 | 176 | } |
| 168 | 177 | |
| 178 | + /** |
|
| 179 | + * @param string $fn |
|
| 180 | + */ |
|
| 169 | 181 | protected function startJob($fn, $fixture) |
| 170 | 182 | { |
| 171 | 183 | $this->gearman->addTask($fn, serialize(array( |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | namespace Doctrine\Tests\ORM\Functional; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\Collections\Criteria; |
| 6 | -use Doctrine\Tests\Models\CMS\CmsUser, |
|
| 7 | - Doctrine\Tests\Models\CMS\CmsGroup, |
|
| 8 | - Doctrine\Common\Collections\ArrayCollection; |
|
| 6 | +use Doctrine\Tests\Models\CMS\CmsUser; |
|
| 7 | +use Doctrine\Tests\Models\CMS\CmsGroup; |
|
| 8 | +use Doctrine\Common\Collections\ArrayCollection; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Basic many-to-many association tests. |
@@ -141,6 +141,9 @@ |
||
| 141 | 141 | return $this->session; |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | + /** |
|
| 145 | + * @param string $session |
|
| 146 | + */ |
|
| 144 | 147 | public function setSession($session) |
| 145 | 148 | { |
| 146 | 149 | $this->session = $session; |