[Catalyst] ActiveRecord for Perl

Peter Karman peter at peknet.com
Tue May 22 21:46:16 GMT 2007



Christopher H. Laco wrote on 5/22/07 2:47 PM:

> Well, to be fair to RDBO, I'm just not as familiar with it as I am with
> DBIC. When I was doing the storage layer for RDBO, what I missed (aside
> from deploy) was the *_related methods and the fact that resultsets are
> chainable. DBIC appears to take the approach that given object A, I can
> always get to related object B through object A accessors, helpers,
> *_related etc.
> 
> RDBO seemed to tale take the opposite approach. Instead of working from
> one object to another, you went through *Manager classes when odd things
> are called for.
> 

Actually, RDBO works like you describe DBIC. The *Manager classes are for groups 
of objects. For one object to another, you use the fk and relationship Metadata 
definitions (1-1, 1-m, m-m, etc).

  $objectB = $objectA->objectB;

-- 
Peter Karman  .  http://peknet.com/  .  peter at peknet.com



More information about the Catalyst mailing list