logo       

Re: Rose::DB::Object subclass instances within Safe compartment: msg#00031

lang.perl.modules.dbi.rose-db-object

Subject: Re: Rose::DB::Object subclass instances within Safe compartment

On 6/6/06, Ethan Rowe <ethan-O9fzpki4YnJWk0Htik3J/w@xxxxxxxxxxxxxxxx> wrote:
> I can pass an instance of a Rose::DB::Object subclass into a Safe compartment.
> The column accessor methods will work within the compartment. But accessing
> "child" objects through the appropriate method breaks, because the object
> instance apparently needs to instantiate the child objects (this happens
> whether the data for "child objects" was retrieved in a manager query or not;
> seems that the fetched data isn't wrapped as an object until it's actually
> needed

If related objects are fetched by the Manager due to require_objects
or with_objects parameters, they should be attached as full-fledged
objects. Can you can show me an instance (sample code) where this is
not the case?

-John


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise