Commit 73962aeb authored by Mat's avatar Mat

[resolved] Offre create: Notice: Array to string conversion

parent c6af413c
......@@ -57,7 +57,7 @@ class OffreAPIController extends MasterAPIController
{
$em = $this->getDoctrine()->getManager();
$em->persist($offre);
$em->flush(); // TODO bug -> Notice: Array to string conversion
$em->flush();
return $this->api($offre, 200, array('readOffres'));
}
return $this->api($form , Response::HTTP_BAD_REQUEST);
......
......@@ -116,7 +116,7 @@ class Offre
$this->lettres = new ArrayCollection();
$this->status = 'draft';
$this->reference = $reference;
$this->sorted = array();
}
......
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