Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-02-21 11:30 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (279 votes). Check out past polls.