Fatal error: Uncaught Doctrine\ORM\ORMInvalidArgumentException: A new entity was found through the relationship 'SwagBundle\Models\Article#bundle' that was not configured to cascade persist operations for entity: SwagBundle\Models\Bundle@0000000071649a9a000000002f2f350b. 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 'SwagBundle\Models\Bundle#__toString()' to get a clue. in /var/www/clients/client1/web1/web/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92 Stack trace: #0 /var/www/clients/client1/web1/web/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(852): Doctrine\ORM\ORMInvalidArgumentException::newEntityFoundThroughRelationship(Array, Object(SwagBundle\Models\Bundle)) #1 /var/www/clients/client1/web1/web/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(740): Doctrine\ORM\Un in /var/www/clients/client1/web1/web/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php on line 92