"Cloning is very useful when you want to make changes to an object, but you
don't want those changes reflected in the cache until you save the object
back to the database. "

http://docs.transfer-orm.com/wiki/Using_Clone.cfm

- Gabriel

On Tue, Sep 14, 2010 at 9:53 AM, Rawlins <[email protected]> wrote:

> Hello Guys,
>
> This may well be totally normal and expected behavior but to me it
> seemed a little curious.
>
> I have two objects:
>
> Acknowledgment
> Manufacturer
>
> Manufacturer has a onetomany relationship with Acknowledgment in the
> following manor:
>
>                                <onetomany name="acknowledgement"
> lazy="true">
>                                        <link to="order.acknowledgement"
> column="manufacturer_id" />
>
>                                        <collection type="array">
>                                                <order property="Created"
> order="desc" />
>                                        </collection>
>                                </onetomany>
>
> Now what I've found is that if I set the parent manufacturer for the
> acknowledgement like this:
>
>                                <cfset
> LOCAL.Acknowledgent.setParentManufacturer(LOCAL.Manufacturer) />
>
> Despite the fact that I don't commit either of the objects, the cache
> still effectively 'saves' the acknowledgment object, and upon reinit
> of the application (at which point the cache is cleared) then the
> acknowledgment record disappears.
>
> Also, as a side note the method setParentManufacturer() seems to be
> really very slow. Performance is terrible.
>
> Is this the sort of behaviour you would expect from the cache? To my
> mind an object should only be cached and a relationship saved if the
> child is committed.
>
> Thanks,
>
> Robert
>
> --
> Before posting questions to the group please read:
>
> http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
>
> Try out the new Transfer ORM Custom Google Search:
> http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8
>
> You received this message because you are subscribed to the Google Groups
> "transfer-dev" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<transfer-dev%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/transfer-dev?hl=en
>

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
"transfer-dev" 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/transfer-dev?hl=en

Reply via email to