[Flow] Object creation

Gianluca Strafella gianluca.strafella at webformat.com
Thu Sep 12 09:14:43 CEST 2013


Hi Bjoern,
if you need to create new model objects, you can use (raccomended) flow 
ObjectManager.

Here you can retrieve some info about ObjectManager: 
http://docs.typo3.org/flow/TYPO3FlowDocumentation/stable/TheDefinitiveGuide/PartIII/ObjectManagement.html

If you need of complex logic in object creation, you can think to have a 
factory to create object prototype, starting by your array items.

Regards,
Gianluca

Il 11/09/2013 19:36, Bjoern Haverland ha scritto:
> Hi everybody,
>
> i´m going to realize a general import/export package, but at the moment
> i got a little bit stuck.
>
> I have a sorting method, where i could assign the import fields to the
> target object fields. I get an array from my form which has fields like
> my entities as they are known from normal form properties
> (entity.property or entity.relatedEntity.property a.s.o.) -> The
> assignment is clear . Now i want to create entities from the import
> source stream based of my assignment. Therefore i´m looking for
> something like an object creator, which does all the stuff like object
> reflection and creation -> analogue to the object creation from a form
> input. Is there something existing yet? I believe it is but where i have
> to look for? Could somebody give me a hint?
>
> Thanks!
>
> Best regards
>
> Bjoern

-- 
Gianluca Strafella

Software Developer
gianluca.strafella at webformat.com
Tel.   +39-0427-926.389

WEBFORMAT srl – www.webformat.com
Via S. Francesco d'Assisi, 6 – 20122 MILANO
Corte Europa, 12 - 33097 SPILIMBERGO (PN)



More information about the Flow mailing list