Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UniqueValidator is invalid with master #77

Closed
henrikbjorn opened this issue Feb 5, 2012 · 9 comments
Closed

UniqueValidator is invalid with master #77

henrikbjorn opened this issue Feb 5, 2012 · 9 comments

Comments

@henrikbjorn
Copy link
Contributor

Fatal error: Call to undefined method Symfony\Component\Validator\ExecutionContext::setPropertyPath() in /Volumes/Kermode/Projects/Play/ProjectName/vendor/doctrine/mongodb-odm-bundle/Doctrine/Bundle/MongoDBBundle/Validator/Constraints/UniqueValidator.php on line 84
@jmikola
Copy link
Member

jmikola commented Feb 6, 2012

@henrikbjorn: Can you test out @stof's PR #68 and see if it resolves the error?

@henrikbjorn
Copy link
Contributor Author

Fatal error: Cannot use object of type Doctrine\ODM\MongoDB\LoggableCursor as array in /Volumes/Kermode/Projects/Play/ProjectName/vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php on line 101

I will try and look into it

@henrikbjorn
Copy link
Contributor Author

Or maybe the solution is to implement ArrayAccess or Traversal on LoggableCursor

@henrikbjorn
Copy link
Contributor Author

symfony#3275

analogic added a commit to analogic/DoctrineMongoDBBundle that referenced this issue Feb 25, 2012
@stof
Copy link
Member

stof commented Apr 15, 2012

@henrikbjorn is it fixed ?

@pierrre
Copy link

pierrre commented Apr 26, 2012

I have a similar error with the UniqueValidator:

[BadMethodCallException] Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo::getAssociationTargetClass($assocName) is not implemented yet.

Is it related?

@stof
Copy link
Member

stof commented Apr 26, 2012

It seems like the ODM has not implemented methods needed to be able to validate the associations. You should open a ticket on the ODM project itself.

@jmikola
Copy link
Member

jmikola commented Apr 27, 2012

@stof: Done in doctrine/mongodb-odm#295

@stof
Copy link
Member

stof commented Jul 21, 2012

Closing this one as there is a ticket in the ODM for it

@stof stof closed this as completed Jul 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants