sorry, i mean: on some rows i get the same left and right "value". Why? any idea?!?
Von: Serkan Sipahi <serkan.sipahi@yahoo.de>
An: "cake-php@googlegroups.com" <cake-php@googlegroups.com>
Gesendet: 13:49 Dienstag, 1.Mai 2012
Betreff: TreeBehavior
Hi,
im building a nested tree inside loop, like this:
$keys = array('key-1', 'key-2', key-3, '....' ......... ....... ..........); //many keys(300) !
foreach($keys as $key){
$data['Category']['name'] = $key;
$this->Category->create();
$this->Category->create();
$this->Category->save($data);
}
problem: on some rows i get the same left and right! Why? any idea?!?
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment