I'm ordering FOS elastica search results by datetime field in database.
The elastica.yml has this property set on mapping:
startsAt: { type: date, format: Y-m-d H:i:s }
But on populate i get this:
[Elastica\Exception\ResponseException]
MapperParsingException[mapping [soccer]]; nested: IllegalArgumentException[Invalid format: [Y-m-d H:i:s]: Illegal pattern component: i]; nested: IllegalArgumentExcept
ion[Illegal pattern component: i];
How do i specify correct format so i can search my elastica result by that datetime field?