Skip to content

Instantly share code, notes, and snippets.

@dionisos2
dionisos2 / Concept.php
Last active December 14, 2015 22:59 — forked from anonymous/Concept.php
If i remove $this->em->flush($conceptNew); i get: Entity of type Ukratio\TrouveToutBundle\Entity\ConceptConcept has identity through a foreign entity Ukratio\TrouveToutBundle\Entity\Concept, however this entity has no identity itself. You have to call EntityManager#persist() on the related entity and make sure that an identifier was generated be…
<?php
namespace Ukratio\TrouveToutBundle\Entity;
use /*all the uses*/
/**
* Ukratio\TrouveToutBundle\Entity\Concept
*