We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I use to Gedmo TimestampableEntity. And I didn't serializer object to json. HTTP 500 Internal Server Error - Unrecognized field: createdAt
User Class Example:
class User extends \DPX\AdminBundle\Model\User { use TimestampableEntity, SoftDeleteableEntity; /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var string * * @ORM\Column(name="username", type="string", length=255, unique=true) */ protected $username;
Action Example $this->get('jms_serializer')->serialize($user, 'json')
$this->get('jms_serializer')->serialize($user, 'json')
Config Yaml added handlers
jms_serializer: handlers: datetime: default_format: "c" default_timezone: "UTC"`
I added JMS Type DateTime in TimestampableEntity createdAt and updatedAt. But It doesn't work. How can i fixed?
The text was updated successfully, but these errors were encountered:
please clear your cache directory
Sorry, something went wrong.
I cleared cache. But it doesn't work. @goetas
can you post the full stack-trace for the exception?
I can fixed. Problem is ORM\OrderBy doesn't work with serializer.
No branches or pull requests
Hi,
I use to Gedmo TimestampableEntity. And I didn't serializer object to json.
HTTP 500 Internal Server Error - Unrecognized field: createdAt
User Class Example:
Action Example
$this->get('jms_serializer')->serialize($user, 'json')
Config Yaml added handlers
I added JMS Type DateTime in TimestampableEntity createdAt and updatedAt. But It doesn't work. How can i fixed?
The text was updated successfully, but these errors were encountered: