|
@@ 143-161 (lines=19) @@
|
| 140 |
|
return $proxyInstance; |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
private function transientFieldsFqns(ClassMetadata $metadata) : array |
| 144 |
|
{ |
| 145 |
|
$transientFieldsFqns = []; |
| 146 |
|
|
| 147 |
|
foreach ($metadata->getDeclaredPropertiesIterator() as $name => $property) { |
| 148 |
|
if (! $property instanceof TransientMetadata) { |
| 149 |
|
continue; |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
$transientFieldsFqns[] = $this->propertyFqcn( |
| 153 |
|
$property |
| 154 |
|
->getDeclaringClass() |
| 155 |
|
->getReflectionClass() |
| 156 |
|
->getProperty($name) // @TODO possible NPR. This should never be null, why is it allowed to be? |
| 157 |
|
); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
return $transientFieldsFqns; |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
private function identifierFieldFqns(ClassMetadata $metadata) : array |
| 164 |
|
{ |
|
@@ 163-179 (lines=17) @@
|
| 160 |
|
return $transientFieldsFqns; |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
private function identifierFieldFqns(ClassMetadata $metadata) : array |
| 164 |
|
{ |
| 165 |
|
$idFieldFqcns = []; |
| 166 |
|
|
| 167 |
|
foreach ($metadata->getIdentifierFieldNames() as $idField) { |
| 168 |
|
$property = $metadata->getProperty($idField); |
| 169 |
|
|
| 170 |
|
$idFieldFqcns[] = $this->propertyFqcn( |
| 171 |
|
$property |
| 172 |
|
->getDeclaringClass() |
| 173 |
|
->getReflectionClass() |
| 174 |
|
->getProperty($idField) // @TODO possible NPR. This should never be null, why is it allowed to be? |
| 175 |
|
); |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
return $idFieldFqcns; |
| 179 |
|
} |
| 180 |
|
|
| 181 |
|
private function propertyFqcn(\ReflectionProperty $property) : string |
| 182 |
|
{ |