Hello together

Array
(
    [Model1] => Array
        (
            [id] => 1
            [title] =>titletext
            [description] => description
        )

    [Model2] => Array
        (
            [0] => Array
                (
                    [id] => 2
                    [model1_id] => 1
                    [title] => titletext
                    [description] => description
                    [amount] => 1
                    [reservation_email] =>
                    [reservation_mail_sent] =>
                    [reservation_status] => FREE
                    [token] => 4bad0da4-da9c-426a-b639-0aa423c87734
                    [created] => 2009-12-30 16:59:53
                    [modified] => 2010-02-25 15:50:25
                )

            [1] => Array
                (
                    [id] => 3
                    [model1_id] => 1


Thats an dump of an var-debug
Thats my call

 $this->set('model1', $this->Model1->find('first',array(
                'conditions' => array('Model1.id' => $id),
                'recursive' =>  1,
                'fields' =>
array('Model1.id','Model1.title','Model1.description')
            )
            )
            );
How can i get with this call(!) fields of the Model2.

The Model1.id has many Model2.ids
 if i use the fields like this way
Model2.id Model2.title it doesn't change it.
In Model2 is also an array [0]....[n] and this number is not the id

How do i this.
I ask because the application is very big
i tried with read but there are to many values( amount, token, ...)
which i don't need in this array so i want a smaller array

can everyone help me please?

many greeting
Marcus

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

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to