Hi

I'm trying use unbindModel() as per below inside a Basket model (which
hasMany BasketItem)

$this->unbindModel(array('hasMany' => array('BasketItem')));
return $this->find('first', array('conditions' => array(
    'Basket.id' => $this->_getBasketID()
)));

The result of the find() I would not expect to include BasketItems.
However, it does. When passing false as the final argument it does
work correctly and does not return BasketItems. However, in this case
I do not want the unbind to persist. As far as I can see, given the
find is immediately after the unbind, the persist => false argument
should not be required.

Can anyone reproduce this before I add a ticket?

Thanks.

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