Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mathieu
potage
Commits
73962aeb
Commit
73962aeb
authored
Sep 12, 2018
by
Mat
Browse files
[resolved] Offre create: Notice: Array to string conversion
parent
c6af413c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/APIBundle/Controller/OffreAPIController.php
View file @
73962aeb
...
...
@@ -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
);
...
...
src/PotageBundle/Entity/Offre.php
View file @
73962aeb
...
...
@@ -116,7 +116,7 @@ class Offre
$this
->
lettres
=
new
ArrayCollection
();
$this
->
status
=
'draft'
;
$this
->
reference
=
$reference
;
$this
->
sorted
=
array
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment