On 4/10/07, Derek Watson <[EMAIL PROTECTED]> wrote:
> I am creating objects from a Manager call:
>
> my $items= My::DBO::Manager::Item->get_items(
> query => [
> sku => int($sku),
> active => 1,
> ],
> );
>
> But they have map_records that I don't want
>
> foreach my $item (@$items) {
> die $item->map_record if ($item->map_record);
> }
>
> These map_records are from another valid relationship for this item,
> but they have nothing to do with the calls I'm making. Is this
> happening because items are cached in memory based on their primary
> key?
No, the Manager does no caching. Given the code you posted, I can't
see a way that this could ever happen. Map records only (optionally,
and not by default) appear when you're asking for a many-to-many
relationship in your Manager call using the with_objects or
require_objects parameters. Can you give me some working sample code
that reproduces the problem?
-John
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object