$this->find('first', array('conditions' => array('id'=>11), 'fields' =>
> array('ip1', 'ip2')));
> should work.
> http://book.cakephp.org/2.0/en/models/retrieving-your-data.html?highlight=find%20first#find-first
>
> or
>
> $this->id = 11;
> $this->read(array('ip1', 'ip2'));
>
> yes, both works
>
> You are using UUIDs for table primary key, read
> http://book.cakephp.org/2.0/en/getting-started/cakephp-conventions.html?highlight=uuid#model-and-database-conventions
> but referring ID's as integer
>
yes, the int 11 is "old test data" but thats not the problem here, i just
thought FIND hast the same functionalty READ has, regarding ids:
"By default, the currently selected record, as specified by Model::$id,"
but i was wrong sorry..
thank you very much!
i'll make a clean project later and hopefully get the other problems solved,
thanks
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php