that and the fact that it could get set with with line

$this->data = $this->Bossz->read(null, $id)

On 1/23/07, Grant Cox <[EMAIL PROTECTED]> wrote:
>
> empty() and null are very different.  empty() will be true for a blank
> string, zero, or an empty array.  In this particular case you have a
> HABTM relationship, and when saving a HABTM all existing connections
> are destroyed, and replaced with those passed.
>
> So, if $this->data['Tag']['Tag'] is empty, it may be an empty array,
> and would delete all the HABTM joins.  Replacing this with null will
> mean the existing joins are not affected.
>
> But the other parts - I'm not sure either.  There must be some similar
> issue with the Tag being set to an empty, but not null value.
>
>
> >
>


-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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