I need help with how to associate the foreign keys with my entities from what i know is that it has to something with this kind of code:
/**
* @ORM\ManyToOne(targetEntity="Category", inversedBy="products")
* @ORM\JoinColumn(name="category_id", referencedColumnName="id")
*/
TL;DR I made entities but now i need to associate the foreign keys (image) but i don't know how.
/**
* @ORM\ManyToOne(targetEntity="klant", mappedBy="Bestellingorder")
*/
private $klanten;
/**
* @ORM\OneToMany(targetEntity="Bestellingorder", inversedBy="klanten")
* @ORM\JoinColumn(name="Bestellingorder_id", referencedColumnName="id")
*/
private $Bestellingorder;
[Creation Error] The annotation @ORM\ManyToOne declared on property TuinBundle\ Entity\Bestellingorder::$klanten does not have a property named "mappedBy". Ava ilable properties: targetEntity, cascade, fetch, inversedBy
stuck here.