You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the PHPCRTypeGuesser (which should be called PhpcrOdmTypeGuesser rather, its about phcpr-odm, not raw phpcr) has bugs with associations.
public function guessType($class, $property)
{
if ($metadata->hasAssociation($property)) {
$multiple = $metadata->isCollectionValuedAssociation($property);
$mapping = $metadata->getAssociationMapping($property);
# the method is called getAssociation()
return new TypeGuess('phpcr_document', array(
'dm' => $documentManager,
# the phpcr_document does not know any option 'dm'. i guess it should be 'om'?
'class' => $mapping['targetDocument'],
'multiple' => $multiple
),
Guess::HIGH_CONFIDENCE
);
}
The text was updated successfully, but these errors were encountered:
the PHPCRTypeGuesser (which should be called PhpcrOdmTypeGuesser rather, its about phcpr-odm, not raw phpcr) has bugs with associations.
The text was updated successfully, but these errors were encountered: