-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datetime update #34
Comments
That's an iso date, so try: |
Yes, I've tried it. It doesn't help As I see with morning fresh mind, the problem relates to a name of the field but a type.
$this->removeExtraFields($request, $form); it calls a code from /**
* Get rid on any fields that don't appear in the form
*
* @param Request $request
* @param Form $form
*/
protected function removeExtraFields(Request $request, Form $form)
{
$data = $request->request->all();
$children = $form->all();
print_r([$data, array_keys($children)]);
$data = array_intersect_key($data, $children);
$request->request->replace($data);
} And have that:
So the new value of workStart property removed because of different naming strategy. Is there a right way to avoid the problem? I assume it should work with |
Sorry, |
Hi. I have an entity with DateTime field
Every other field updates correctly with PUT request. But the field.
I receive data from client in format 2012-02-25T21:00:00.000Z
Can you assist me to find a clue?
Thanks
The text was updated successfully, but these errors were encountered: