Commit 3a6c0590 authored by Mat's avatar Mat
Browse files

ajoute un constructeur dans cette manyToOne, conformément à la doc ->

* https://symfony.com/doc/3.4/doctrine/associations.html
parent 7445cbbb
......@@ -2,6 +2,7 @@
namespace PotageBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
......@@ -92,11 +93,12 @@ class Offre
/**
* Offre constructor.
*
* @param string $reference
* @param $reference
*/
public function __construct($reference)
{
$this->offreLegumes = new \Doctrine\Common\Collections\ArrayCollection();
$this->offreLegumes = new ArrayCollection();
$this->lettres = new ArrayCollection();
$this->status = 'draft';
$this->reference = $reference;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment