I have this array:

[1] => Array
        (
            [User] => Array
                (
                    [id] => 4
                    [username] => xxx
                    [password] => xxx
                    [first_name] => xxx
                    [last_name] => xxx
                    [street_address] => xxx
                    [city] => xxx
                    [state] => xxx
                    [zip] => xxx
                    [country] => xxx
                    [telephone] => xxx
                    [email_address] => xxx
                    [group_id] => xxx
                    [created] => xxx
                    [updated] => xxx
                )

            [UserPreference] => Array
                (
                    [image] => xxx
                )

            [friend] => Array
                (
                    [0] => Array
                        (
                            [id] => 29
                            [username] => xxx
                                [password] => xxx
                                [first_name] => xxx
                                [last_name] => xxx
                                [street_address] => xxx
                                [city] => xxx
                                [state] => xxx
                                [zip] => xxx
                                [country] => xxx
                                [telephone] => xxx
                                [email_address] => xxx
                                [group_id] => xxx
                                [created] => xxx
                                [updated] => xxx
                            [Friend] => Array
                                (
                                    [id] => 39
                                    [user_id] => 4
                                    [friend_id] => 29
                                    [approved] => 0
                                    [message] =>
                                    [created] => 2010-05-22 12:44:05
                                    [modified] => 2010-05-22 12:44:05
                                )

                        )

                )

            [admirer] => Array
                (
                    [0] => Array
                        (
                            [id] => 5
                            [username] => xxx
                                [password] => xxx
                                [first_name] => xxx
                                [last_name] => xxx
                                [street_address] => xxx
                                [city] => xxx
                                [state] => xxx
                                [zip] => xxx
                                [country] => xxx
                                [telephone] => xxx
                                [email_address] => xxx
                                [group_id] => xxx
                                [created] => xxx
                                [updated] => xxx
                            [Friend] => Array
                                (
                                    [id] => 40
                                    [user_id] => 5
                                    [friend_id] => 4
                                    [approved] => 0
                                    [message] =>
                                    [created] => 2010-05-22 17:50:36
                                    [modified] => 2010-05-22 17:50:36
                                )

                        )

                )

        )

and I want it to look like this

        [1] => Array
        (
            [User] => Array
                (
                    [id] => 4
                    [username] => xxx
                    [password] => xxx
                    [first_name] => xxx
                    [last_name] => xxx
                    [street_address] => xxx
                    [city] => xxx
                    [state] => xxx
                    [zip] => xxx
                    [country] => xxx
                    [telephone] => xxx
                    [email_address] => xxx
                    [group_id] => xxx
                    [created] => xxx
                    [updated] => xxx
                )

            [UserPreference] => Array
                (
                    [image] => xxx
                )

            [friends] => Array
                ([id] => 39, [user_id] => 4, [friend_id] => 29,
[approved] => 0)
                ([id] => 40, [user_id] => 5, [friend_id] => 4,
[approved] => 0)


Is this even possible with Set::extract or Set:Combine.

And if so, where do I call that from, my controller.

Right now I am using paginate for the find with containable to get rid
of a bunch of other models.

Thanks in advance.

Brad

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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