Re: Might Have
[prev]
[thread]
[next]
[Date index for 2005/02/24]
--- Brad Bowman <list@xxxxxx.xxx> wrote:
> Hello all,
>
> I tried using the might_have relationship and found behaviour
> which suprised me, but may or may not be buggy.
>
> I tried to delete and then access the deleted object.
> In terms of the might have example:
>
> $cd->liner_notes->delete
> $cd->liner_notes; # error not undef
>
Not sure if someone replied to this or not but i just had a thought on this.
The docs say that " After an object is deleted it is no longer usable".
Perhaps if you called update (or whatever makes the cd reload itself from the
db) then after that after liner_notes would be undef.
=====
pjs
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
|
|
Re: Might Have
Peter Speltz 03:56 on 24 Feb 2005
|