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

Entity serialization issue #126

Closed
Venzon opened this issue Jun 9, 2012 · 3 comments
Closed

Entity serialization issue #126

Venzon opened this issue Jun 9, 2012 · 3 comments

Comments

@Venzon
Copy link

Venzon commented Jun 9, 2012

Is it possible to serialize doctrine 2 entity created for example using DQL select?

Passing such entity object to serializer makes my script timeout after 30s.. seems that object handled by entity manager is to big for serialization.

Is there any proper way to serialize entity and maybe its related entities?

I would like to store serialized entity in cache (apc).

@stof
Copy link
Contributor

stof commented Jun 9, 2012

which version of the bundle are you using ?

@Venzon
Copy link
Author

Venzon commented Jun 9, 2012

I installed bundle using composer so I use dev-master
http://jmsyst.com/bundles/JMSSerializerBundle/master/installation#using-composer-recommended
I know that serializing entity managed by UnitOfWork is kinda tricky but maybe someone tried to do it...

@Venzon
Copy link
Author

Venzon commented Jun 12, 2012

I think we can close this issue
Serializing entity managed by UnitOfWork is not possible/good practice however there is no problem with serializing entity not attached to entity manager

@Venzon Venzon closed this as completed Jun 12, 2012
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