Hey Jonh,
Thanks but, what i'm looking for is a solution for this kind of
problems with CakePHP's Set class
Can you give it? Where are the experts? :)

On May 14, 12:04 pm, John Andersen <[email protected]> wrote:
> Add "recursive" => -1 to your find conditions!
> Enjoy,
>    John
>
> On May 14, 1:55 pm, PaulMan <[email protected]> wrote:
>
> > Hello,
> > This technique is new to me, and i cant make set::combine to work the
> > way i want...
>
> > here is;
> > I Have
> > Array
> > (
> >     [0] => Array
> >         (
> >             [products] => Array
> >                 (
> >                     [id] => 19430
> >                     [code] => 000000000001170000
> >                     [brand_id] => 1
> >                     [active] => 1
> >                     [cart] => 1
> >                     [price] =>
> >                     [special_price] =>
> >                     [quantity] => 1
> >                     [weight] =>
> >                     [name] => Abob.Bca.Crist.Elos 200gr.
> >                     [description] =>
> >                     [images] =>
> >                     [brand] => 001
> >                     [bloqued] =>
> >                     [unit_iso] => CR
> >                     [unit_alt] => KI
> >                     [uom_iso] => EA
> >                     [sap_mov_unit] => CR
> >                     [pack_units] => 12
> >                     [product_unity] => CX
> >                     [sap_unity] => KI
> >                     [created] =>
> >                     [modified] => 2009-04-28 01:10:42
> >                 )
>
> >             [catalogs_products] => Array
> >                 (
> >                     [catalog_id] => ELOS24_MF
> >                     [product_id] => 19430
> >                     [begin_date] => 2008-01-01 00:00:00
> >                     [end_date] => 9999-12-31 00:00:00
> >                     [updated] => 2009-03-29 23:25:53
> >                     [created] => 2009-05-08 00:00:00
> >                 )
>
> >         )
>
> >     [1] => Array
> >         (
> >             [products] => Array
> >                 (
> >                     [id] => 6273
> >                     [code] => 000000000001064857
> >                     [brand_id] => 1
> >                     [active] => 1
> >                     [cart] => 1
> >                     [price] =>
> >                     [special_price] =>
> >                     [quantity] => 1
> >                     [weight] =>
> >                     [name] => Abobora II Qta.Elos PT Emb.500gr.Tr.
> >                     [description] =>
> >                     [images] =>
> >                     [brand] => 001
> >                     [bloqued] =>
> >                     [unit_iso] => CR
> >                     [unit_alt] => KI
> >                     [uom_iso] => KGM
> >                     [sap_mov_unit] => CR
> >                     [pack_units] => 5
> >                     [product_unity] => CX
> >                     [sap_unity] => KI
> >                     [created] =>
> >                     [modified] => 2009-03-11 13:12:17
> >                 )
>
> >             [catalogs_products] => Array
> >                 (
> >                     [catalog_id] => ELOS24_MF
> >                     [product_id] => 6273
> >                     [begin_date] => 2008-01-01 00:00:00
> >                     [end_date] => 9999-12-31 00:00:00
> >                     [updated] => 2009-03-29 23:25:49
> >                     [created] => 2009-05-08 00:00:00
> >                 )
>
> >         )
>
> >     and so on...
>
> > i want to translate it to
>
> > Array
> > (
> >     [0] => Array
> >         (
> >             [Product] => Array
> >                 (
> >                     [id] => 19430
> >                     [code] => 000000000001170000
> >                     [brand_id] => 1
> >                     [active] => 1
> >                     [cart] => 1
> >                     [price] =>
> >                     [special_price] =>
> >                     [quantity] => 1
> >                     [weight] =>
> >                     [name] => Abob.Bca.Crist.Elos 200gr.
> >                     [description] =>
> >                     [images] =>
> >                     [brand] => 001
> >                     [bloqued] =>
> >                     [unit_iso] => CR
> >                     [unit_alt] => KI
> >                     [uom_iso] => EA
> >                     [sap_mov_unit] => CR
> >                     [pack_units] => 12
> >                     [product_unity] => CX
> >                     [sap_unity] => KI
> >                     [created] =>
> >                     [modified] => 2009-04-28 01:10:42
> >                 )
> > )
> >  [1] => Array
> >         (
> >             [Product] => Array
> >                 (
> >                     [id] => 19430
> >                     [code] => 000000000001170000
> >                     [brand_id] => 1
> >                     [active] => 1
> >                     [cart] => 1
> >                     [price] =>
> >                     [special_price] =>
> >                     [quantity] => 1
> >                     [weight] =>
> >                     [name] => Abob.Bca.Crist.Elos 200gr.
> >                     [description] =>
> >                     [images] =>
> >                     [brand] => 001
> >                     [bloqued] =>
> >                     [unit_iso] => CR
> >                     [unit_alt] => KI
> >                     [uom_iso] => EA
> >                     [sap_mov_unit] => CR
> >                     [pack_units] => 12
> >                     [product_unity] => CX
> >                     [sap_unity] => KI
> >                     [created] =>
> >                     [modified] => 2009-04-28 01:10:42
> >                 )
> > )
>
> > and so on...
>
> > on resume: remove
> >  [catalogs_products] => Array
> >                 (
> >                     [catalog_id] => ELOS24_MF
> >                     [product_id] => 19430
> >                     [begin_date] => 2008-01-01 00:00:00
> >                     [end_date] => 9999-12-31 00:00:00
> >                     [updated] => 2009-03-29 23:25:53
> >                     [created] => 2009-05-08 00:00:00
> >                 )
>
> > and change [products] to [Product]
>
> > can somebody help?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to