Hello,

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? I am running in a mod_perl environment.

How can I control this behaviour? There is a more appropriate type of
$item->map_record that I want access to, but it does not exist because
of this cached one.  Thoughts?

Derek

-------------------------------------------------------------------------
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
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to