Skip to content
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

Serializer working with parent class #376

Closed
kessiler opened this issue Dec 26, 2014 · 1 comment
Closed

Serializer working with parent class #376

kessiler opened this issue Dec 26, 2014 · 1 comment

Comments

@kessiler
Copy link

I have an application that uses doctrine 2 (ORM), and use an override in datetimes. (Doctrine\DBAL\Types\Type::overrideType)
In this situation the handlers not serialize the object type, even though the son of datetime.

See the example:

Class A -> ORM\DateTimeType extends \DateTime
Object A -> instance of DateTimeType

To serialize, the return should be a string of type date
Example: serialize($A); -----> '2014-12-26 16:46:10'

But is an empty object..( {} )

kessiler pushed a commit to Zeedhi/serializer that referenced this issue Dec 29, 2014
@goetas goetas added the bug label Aug 9, 2016
@goetas goetas removed the bug label Mar 13, 2017
@goetas
Copy link
Collaborator

goetas commented Mar 13, 2017

this is a more general problem and sub-problem of #698

@goetas goetas closed this as completed Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants