@@ -123,8 +123,8 @@ |
||
| 123 | 123 | $targetIdName = array_shift($targetIdsNames); |
| 124 | 124 | $type = |
| 125 | 125 | $this->manager->getConfiguration() |
| 126 | - ->getTypeRegistry() |
|
| 127 | - ->get($targetMetadata->getTypeOfField($targetIdName)); |
|
| 126 | + ->getTypeRegistry() |
|
| 127 | + ->get($targetMetadata->getTypeOfField($targetIdName)); |
|
| 128 | 128 | $identifiers = [$targetIdName => $type->fromApiValue($value)]; |
| 129 | 129 | } |
| 130 | 130 | |
@@ -75,11 +75,11 @@ |
||
| 75 | 75 | if ($this->unitOfWork->isInIdentityMap($id[$field])) { |
| 76 | 76 | $associatedId = |
| 77 | 77 | $this->flattenIdentifier($targetClassMetadata, |
| 78 | - $this->unitOfWork->getEntityIdentifier($id[$field])); |
|
| 78 | + $this->unitOfWork->getEntityIdentifier($id[$field])); |
|
| 79 | 79 | } else { |
| 80 | 80 | $associatedId = |
| 81 | 81 | $this->flattenIdentifier($targetClassMetadata, |
| 82 | - $targetClassMetadata->getIdentifierValues($id[$field])); |
|
| 82 | + $targetClassMetadata->getIdentifierValues($id[$field])); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | $flatId[$field] = implode(' ', $associatedId); |
@@ -106,12 +106,12 @@ |
||
| 106 | 106 | |
| 107 | 107 | return array_filter( |
| 108 | 108 | array_filter(array_map( |
| 109 | - [$this, 'getAccessibleProperty'], |
|
| 110 | - array_combine( |
|
| 111 | - array_map([$this, 'getLogicalName'], $properties), |
|
| 112 | - $properties |
|
| 113 | - ) |
|
| 114 | - )), |
|
| 109 | + [$this, 'getAccessibleProperty'], |
|
| 110 | + array_combine( |
|
| 111 | + array_map([$this, 'getLogicalName'], $properties), |
|
| 112 | + $properties |
|
| 113 | + ) |
|
| 114 | + )), |
|
| 115 | 115 | [$this, 'isInstanceProperty'] |
| 116 | 116 | ); |
| 117 | 117 | } |
@@ -72,10 +72,10 @@ |
||
| 72 | 72 | * @todo Check identity map? loadById method? Try to guess whether $criteria is the id? |
| 73 | 73 | */ |
| 74 | 74 | public function load(array $criteria, |
| 75 | - $entity = null, |
|
| 76 | - $assoc = null, |
|
| 77 | - $limit = null, |
|
| 78 | - array $orderBy = null); |
|
| 75 | + $entity = null, |
|
| 76 | + $assoc = null, |
|
| 77 | + $limit = null, |
|
| 78 | + array $orderBy = null); |
|
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Loads an entity by identifier. |
@@ -175,10 +175,10 @@ |
||
| 175 | 175 | * @todo Check identity map? loadById method? Try to guess whether $criteria is the id? |
| 176 | 176 | */ |
| 177 | 177 | public function load(array $criteria, |
| 178 | - $entity = null, |
|
| 179 | - $assoc = null, |
|
| 180 | - $limit = null, |
|
| 181 | - array $orderBy = null) |
|
| 178 | + $entity = null, |
|
| 179 | + $assoc = null, |
|
| 180 | + $limit = null, |
|
| 181 | + array $orderBy = null) |
|
| 182 | 182 | { |
| 183 | 183 | // TODO: Implement load() method. |
| 184 | 184 | } |