On Tue, 27 Mar 2007, John Siracusa wrote:
> If there really can only be one such company with the same location
> id, then you'll have to make location_id a unique key of the companies
> table and/or Company class:

> The "required" attribute makes the method return undef (instead of
> throwing an exception) when no matching company exists:
> 
> http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object/Metadata/Relationship/ManyToOne.pm#required
> 
>     $company = $e->company; # may be undef

John,
Thank you!  This was exactly what I was looking for.
    -- Robert

-- 
Robert James Kaes                  WormBytes Consulting and Contracting
http://tinyproxy.sourceforge.net/              http://www.wormbytes.ca/

-------------------------------------------------------------------------
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