Skip to content

Instantly share code, notes, and snippets.

@daslicht
Created February 4, 2014 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daslicht/8807759 to your computer and use it in GitHub Desktop.
Save daslicht/8807759 to your computer and use it in GitHub Desktop.
Ship.php
/**
* @ORM\ManyToOne(targetEntity="Producer", inversedBy="ship")
* @ORM\JoinColumn(name="producer_id", referencedColumnName="id")
*/
protected $producer;
...
Producer.php
/**
* @ORM\OneToMany(targetEntity="Ship", mappedBy="producer" )
*/
protected $ships;
@daslicht
Copy link
Author

daslicht commented Feb 4, 2014

Mapping errors:
The mappings DasLicht\CapeSidePortBundle\Entity\Producer#ships and DasLicht\CapeSidePortBundle\Entity\Ship#producer are inconsistent with each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment