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

Trying to decorate a member to ArrayCollection but gets an error when deserilizing because composer didn't download the class from doctrine. #596

Closed
alexandrubeu opened this issue May 27, 2016 · 2 comments

Comments

@alexandrubeu
Copy link

This is the code
/**
* @var array|MovieCollectionItemViewModel
* @type("ArrayCollection<Server\BusinessLayer\ViewModels\MovieCollectionItemViewModel>")
*/
public $collectionItems = array();

The error:
PHP Fatal Error: Class 'Doctrine\Common\Collections\ArrayCollection' not found in ......./vendor/jms/serializer/src/JMS/Serializer/Handler/ArrayCollectionHandler.php on line 76

@goetas
Copy link
Collaborator

goetas commented May 27, 2016

do you have installed doctrine collection at least? https://github.com/doctrine/collections

@goetas
Copy link
Collaborator

goetas commented Aug 3, 2016

see explanation of #517 (comment)

@goetas goetas closed this as completed Aug 3, 2016
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

2 participants