@@ -1,4 +1,4 @@ |
||
| 1 | -<?php echo '<?php' , PHP_EOL; ?> |
|
| 1 | +<?php echo '<?php', PHP_EOL; ?> |
|
| 2 | 2 | |
| 3 | 3 | use Tarantool\Mapper\Contracts\Manager; |
| 4 | 4 | use Tarantool\Mapper\Contracts\Migration; |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | - * @return Entity |
|
| 94 | + * @return boolean |
|
| 95 | 95 | */ |
| 96 | 96 | public function knows(Contracts\Entity $entity) |
| 97 | 97 | { |
@@ -139,6 +139,9 @@ |
||
| 139 | 139 | return $this; |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $property |
|
| 144 | + */ |
|
| 142 | 145 | public function reference(Contracts\Type $foreign, $property = null) |
| 143 | 146 | { |
| 144 | 147 | if (!$property) { |
@@ -166,8 +166,8 @@ |
||
| 166 | 166 | unset($this->properties[$index]); |
| 167 | 167 | unset($this->types[$name]); |
| 168 | 168 | |
| 169 | - foreach($this->indexes as $index => $fields) { |
|
| 170 | - if($fields == [$name]) { |
|
| 169 | + foreach ($this->indexes as $index => $fields) { |
|
| 170 | + if ($fields == [$name]) { |
|
| 171 | 171 | unset($this->indexes[$index]); |
| 172 | 172 | } |
| 173 | 173 | } |