> Nilson Santos Figueiredo Junior
> Envoyé : jeudi, 14. septembre 2006 05:36

> Relationships are also dumped.
> So if you've got A which has_many B, you'll get something like:
> 
> A = {
>   A_field1: 'value',
>   A_field2: 'value',
>   // etc
>   relationship: [
>     { B_field1: 'value', B_field2: 'value' },
>     { B_field1: 'value', B_field2: 'value' }
>   ]
> }
>

Well, following all relationships automatically might lead you to 
dump the whole database ! So the programmer needs a way to specify
which relationships should be followed, how deep the recursion will go,
etc, but it's not obvious to design a simple yet powerful API for that.
I tried to do it with methods 'expand', 'autoExpand' in DBIx::DataModel, 
but it needs further work to become more flexible.

Best regards, L. Dami

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to