Hey,

i've try to hydrate an nested array, which abstract also entity relations.

Normally we define forms and fieldsets, set the input fiters and hydrators,
and hydrate them into the entities.

By i get datas by an webservice and i also get datas by json files,
so i dont have forms defined.

Have anyone an idea, how to build the hydrator system?
The datastructure looks similiar to:

<?php

    $arrData = array(
        'username' => 'test',
        'email' => '[email protected]',
        'images' => array(
            array(
                'name' => 'test',
                'url' => 'http://url1.test'
            ),
            array(
                'name' => 'test',
                'url' => 'http://url1.test'
            )
        ),

       'phones' => array(
            array(
                'phone' => '000000000'
            ),
            array(

                'phone' => '000000000'

           )
        )

   );
?>



So the data will be defined something like this

1 user has multiple images
1 user has multiple phone numbers

Has anyone an idea how to hydrate doctrine associations / relations like 
this without zf2 form/fieldsets?

regards

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to