-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
I post this json with angularjs
{
"name":"mason inc"
"status": {
"id": 1
"name": "Enable"
}
}My form is:
$builder
->add('name')
->add('status', 'voryx_entity', array(
'class' => 'AppBundle\Entity\Status',
)
)
;And Response is:
{
"errors":{
"form":{
"children":{
"name":{
},
"status":{
"errors":[
"The selected entity does not exist"
]
}
}
},
"errors":[
]
}
}What is the error ?, because DataTransformer provide in line 55
if (is_array($data) && isset($data['id'])) {
return $data['id'];
}Symfony version: 2.8.6 and de entity 1 exists in the data base.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels