Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Is DBIC following the ActiveRecord pattern?

by McA (Priest)
on Jul 09, 2013 at 08:20 UTC ( #1043260=perlquestion: print w/ replies, xml ) Need Help??
McA has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

does DBIx::Class (strictly) follow the Active record pattern (

I'm asking because there are methods accessible from a single object (e.g.->update), but also methods which are called on the ResultSet object. Also object (row) creation seems to be done via the ResultSet and not by the object itself.

I'm really interested in the design. So, does the object know how to persist itself? The answer seems to be 'yes' concerning an update, but 'no' concerning the initial persistence.

Where are the OO-people out there? How do you think about it (despite probably recommending DBIC as the one and only)?

Best regards

Comment on Is DBIC following the ActiveRecord pattern?
Download Code
Re: Is DBIC following the ActiveRecord pattern?
by daxim (Chaplain) on Jul 09, 2013 at 08:31 UTC
    mst in #dbix-class says:
    ActiveRecord-"ish". Class::DBI was very much AR style. DBIC is AR-except-not-as-retarded.


      thank you for being our PerlMonks-IRC-gateway... :)

      Can you ask what "AR-except-not-as-retarded" mean? ;)

      Best regards

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1043260]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2015-05-24 22:19 GMT
Find Nodes?
    Voting Booth?

    In my home, the TV remote control is ...

    Results (476 votes), past polls