Skip to content
This repository

fix type guesser #49

Merged
merged 1 commit into from over 1 year ago

2 participants

Uwe Jäger David Buchmann
Uwe Jäger

These changes are needed to make a ReferenceOne work in the admin ...

David Buchmann dbu merged commit dd93c6c into from
David Buchmann dbu closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 05, 2013
Uwe Jäger uwej711 fix type guesser b2b4ad0
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. +1 2  Form/PHPCRTypeGuesser.php
3  Form/PHPCRTypeGuesser.php
@@ -58,10 +58,9 @@ public function guessType($class, $property)
58 58
59 59 if ($metadata->hasAssociation($property)) {
60 60 $multiple = $metadata->isCollectionValuedAssociation($property);
61   - $mapping = $metadata->getAssociationMapping($property);
  61 + $mapping = $metadata->getAssociation($property);
62 62
63 63 return new TypeGuess('phpcr_document', array(
64   - 'dm' => $documentManager,
65 64 'class' => $mapping['targetDocument'],
66 65 'multiple' => $multiple
67 66 ),

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.