[Flow] Storing Generic Objects
Carsten Bleicker
carsten at bleicker.de
Tue Mar 25 16:27:31 CET 2014
hi,
to store the orders in my shop i want do build up simple order objects implementing \Serializable interface.
i want this to be stored in the db as serialized objects containing several infos. delivery, product title, price of product
at the moment i send the order etc etc. so i have my order object wich is NOT an entity or valueobject. Its just a simple Object
wich supports serialize interface. but flow seems only be able to handle its entities and valueobject. Using extended stuff of doctrine
is not possible i think. f.e. this one:
http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/types.html#custom-mapping-types
my patch is just a first idea i want to discuss. its not final etc. but flows persistence layer is imho a bottleneck wich does not allow me to use doctrines power.
many doctrine features seems to be not possible. another example: \DateInterval storing to db not possible.
the idea i want to discuss is this:
https://review.typo3.org/#/c/25907/
my goal:
https://gist.github.com/pumatertion/9763893
Problems:
1. Properties containing an Object withoud XtoY Relation annotation seems not to be in the reflection.
So not generated in the db by doctrine:update
2. FlowAnnotationDriver does not respect object and its type configuration so doctrines custom mapping types never possible i think
kind regards
carsten
More information about the Flow
mailing list