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

Cannot batch create resource templates #1072

Closed
jimsafley opened this issue Sep 26, 2017 · 2 comments
Closed

Cannot batch create resource templates #1072

jimsafley opened this issue Sep 26, 2017 · 2 comments
Milestone

Comments

@jimsafley
Copy link
Member

When batch creating resource templates I get the following error:

PHP Fatal error:  Uncaught Doctrine\ORM\ORMInvalidArgumentException: A new entity was found through the relationship 'Omeka\Entity\ResourceTemplateProperty#resourceTemplate' that was not configured to cascade persist operations for entity: Omeka\Entity\ResourceTemplate@00000000452338c80000000047df6d44. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist  this association in the mapping for example @ManyToOne(..,cascade={"persist"}). If you cannot find out which entity causes the problem implement 'Omeka\Entity\ResourceTemplate#__toString()' to get a clue. in /mnt/1TB/html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92
Stack trace:
#0 /mnt/1TB/html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(852): Doctrine\ORM\ORMInvalidArgumentException::newEntityFoundThroughRelationship(Array, Object(Omeka\Entity\ResourceTemplate))
#1 /mnt/1TB/html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(740): Doctrine\ORM\U in /mnt/1TB/html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php on line 92
@zerocrates
Copy link
Member

Hmmm.... probably missing cascade detach

@zerocrates
Copy link
Member

@zerocrates zerocrates added this to the October 2 milestone Sep 29, 2017
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