@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
4 | 4 | |
5 | -use Doctrine\Tests\Models\Company\CompanyPerson; |
|
6 | - |
|
7 | 5 | /** |
8 | 6 | * Tests that join columns (foreign keys) can be named the same as the association |
9 | 7 | * fields they're used on without causing issues. |
@@ -151,6 +151,9 @@ discard block |
||
151 | 151 | $this->books = new \Doctrine\Common\Collections\ArrayCollection; |
152 | 152 | } |
153 | 153 | |
154 | + /** |
|
155 | + * @param string $title |
|
156 | + */ |
|
154 | 157 | public function addBook($title) |
155 | 158 | { |
156 | 159 | $book = new DDC618Book($title, $this); |
@@ -175,6 +178,9 @@ discard block |
||
175 | 178 | /** @ManyToOne(targetEntity="DDC618Author", inversedBy="books") */ |
176 | 179 | public $author; |
177 | 180 | |
181 | + /** |
|
182 | + * @param DDC618Author $author |
|
183 | + */ |
|
178 | 184 | function __construct($title, $author) |
179 | 185 | { |
180 | 186 | $this->title = $title; |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
4 | 4 | |
5 | -use DateTime; |
|
6 | - |
|
7 | 5 | class DDC698Test extends \Doctrine\Tests\OrmFunctionalTestCase |
8 | 6 | { |
9 | 7 | protected function setUp() |
@@ -66,6 +66,9 @@ discard block |
||
66 | 66 | return $this->name; |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @param string $name |
|
71 | + */ |
|
69 | 72 | public function setName($name) { |
70 | 73 | $this->name = $name; |
71 | 74 | } |
@@ -74,6 +77,9 @@ discard block |
||
74 | 77 | return $this->type; |
75 | 78 | } |
76 | 79 | |
80 | + /** |
|
81 | + * @param string $type |
|
82 | + */ |
|
77 | 83 | public function setType($type) { |
78 | 84 | $this->type = $type; |
79 | 85 | } |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
4 | 4 | |
5 | -use DateTime; |
|
6 | - |
|
7 | 5 | class DDC698Test extends \Doctrine\Tests\OrmFunctionalTestCase |
8 | 6 | { |
9 | 7 | protected function setUp() |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
4 | 4 | |
5 | -use DateTime; |
|
6 | - |
|
7 | 5 | class DDC698Test extends \Doctrine\Tests\OrmFunctionalTestCase |
8 | 6 | { |
9 | 7 | protected function setUp() |
@@ -20,6 +20,7 @@ |
||
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Helper method to set cascade to merge only |
23 | + * @param string $class |
|
23 | 24 | */ |
24 | 25 | private function setCascadeMergeFor($class) |
25 | 26 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | 6 | use Doctrine\Tests\Models\CMS\CmsUser; |
7 | -use Doctrine\Tests\Models\CMS\CmsPhonenumber; |
|
8 | 7 | use Doctrine\Tests\Models\CMS\CmsGroup; |
9 | 8 | |
10 | 9 | class DDC758Test extends \Doctrine\Tests\OrmFunctionalTestCase |
@@ -24,7 +24,6 @@ |
||
24 | 24 | use Doctrine\Common\Persistence\ObjectRepository; |
25 | 25 | use Doctrine\Common\Collections\Selectable; |
26 | 26 | use Doctrine\Common\Collections\Criteria; |
27 | -use Doctrine\Common\Collections\ArrayCollection; |
|
28 | 27 | |
29 | 28 | /** |
30 | 29 | * An EntityRepository serves as a repository for entities with generic as well as |
@@ -137,6 +137,9 @@ discard block |
||
137 | 137 | */ |
138 | 138 | public $version; |
139 | 139 | |
140 | + /** |
|
141 | + * @param string $word |
|
142 | + */ |
|
140 | 143 | public function __construct($word) |
141 | 144 | { |
142 | 145 | $this->word = $word; |
@@ -166,6 +169,9 @@ discard block |
||
166 | 169 | */ |
167 | 170 | public $version; |
168 | 171 | |
172 | + /** |
|
173 | + * @param string $name |
|
174 | + */ |
|
169 | 175 | public function __construct($name) |
170 | 176 | { |
171 | 177 | $this->name = $name; |
@@ -183,6 +189,11 @@ discard block |
||
183 | 189 | /** @Column(type="integer") */ |
184 | 190 | public $rgt; |
185 | 191 | |
192 | + /** |
|
193 | + * @param string $name |
|
194 | + * @param integer $lft |
|
195 | + * @param integer $rgt |
|
196 | + */ |
|
186 | 197 | public function __construct($name, $lft, $rgt) |
187 | 198 | { |
188 | 199 | $this->name = $name; |
@@ -2,10 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
4 | 4 | |
5 | -use Doctrine\Common\Collections\ArrayCollection; |
|
6 | -use Doctrine\Tests\Models\CMS\CmsUser; |
|
7 | -use Doctrine\Tests\Models\CMS\CmsGroup; |
|
8 | - |
|
9 | 5 | class DDC832Test extends \Doctrine\Tests\OrmFunctionalTestCase |
10 | 6 | { |
11 | 7 | public function setUp() |
@@ -118,6 +118,9 @@ discard block |
||
118 | 118 | return $this->name; |
119 | 119 | } |
120 | 120 | |
121 | + /** |
|
122 | + * @param string $name |
|
123 | + */ |
|
121 | 124 | public function setName($name) |
122 | 125 | { |
123 | 126 | $this->name = $name; |
@@ -155,6 +158,9 @@ discard block |
||
155 | 158 | $this->calls = new \Doctrine\Common\Collections\ArrayCollection(); |
156 | 159 | } |
157 | 160 | |
161 | + /** |
|
162 | + * @param integer $id |
|
163 | + */ |
|
158 | 164 | public function setId($id) |
159 | 165 | { |
160 | 166 | $this->id = $id; |
@@ -165,6 +171,9 @@ discard block |
||
165 | 171 | $this->user = $user; |
166 | 172 | } |
167 | 173 | |
174 | + /** |
|
175 | + * @param string $phoneNumber |
|
176 | + */ |
|
168 | 177 | public function setPhoneNumber($phoneNumber) |
169 | 178 | { |
170 | 179 | $this->phonenumber = $phoneNumber; |
@@ -78,11 +78,17 @@ |
||
78 | 78 | */ |
79 | 79 | private $name; |
80 | 80 | |
81 | + /** |
|
82 | + * @param string $name |
|
83 | + */ |
|
81 | 84 | public function __construct($name) |
82 | 85 | { |
83 | 86 | $this->name = $name; |
84 | 87 | } |
85 | 88 | |
89 | + /** |
|
90 | + * @param string $name |
|
91 | + */ |
|
86 | 92 | public function setName($name) |
87 | 93 | { |
88 | 94 | $this->name = $name; |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
4 | 4 | |
5 | -use Doctrine\Common\Collections\ArrayCollection; |
|
6 | - |
|
7 | 5 | class DDC960Test extends \Doctrine\Tests\OrmFunctionalTestCase |
8 | 6 | { |
9 | 7 | protected function setUp() |