$idType =
$classMetadata->
getTypeOfField(current($ids));
$this->om =
$om;
$this->classMetadata =
$classMetadata;
$this->singleId = 1 === \
count($ids);
$this->intId =
$this->singleId && \
in_array($idType,
['integer', 'smallint', 'bigint'
]);
$this->idField =
current($ids);
// single field association are resolved, since the schema column could be an int
if ($this->singleId &&
$classMetadata->
hasAssociation($this->idField
)) { $this->associationIdReader =
new self($om,
$om->
getClassMetadata( $classMetadata->
getAssociationTargetClass($this->idField
) ));
$this->singleId =
$this->associationIdReader->
isSingleId();
$this->intId =
$this->associationIdReader->
isIntId();
} } /**
* Returns whether the class has a single-column ID.
*/
public function isSingleId(): bool
{