-
-
Notifications
You must be signed in to change notification settings - Fork 72
Description
I don't know if this is an idea for this project or if it should be done for a different one
my idea is to use the property info for the serialized class:
/**
* ORM Column("json_serial")
*/
property ?Block $content;if the DoctrineType could access the info of the property somehow, then it could know into which classes it is doing to denormalize.
Also it could get the serialize and deserialize context from the property and it wouldn't need extra stuff inside the json
while talking more with others, it seems it isn't as easy as i thought because the moment when doctrine is using the Type to get the data from the database, i can't access the property it is going into
so my idea probably need a different approach, so i need to get in between doctrine loading data from the database and it putting the data in the entities