[Solar-talk] Solar_Sql_Table initial rows
Antti Holvikari
anttih at gmail.com
Tue Jul 11 14:24:47 PDT 2006
On 7/12/06, Paul M Jones <pmjones at solarphp.com> wrote:
> So would I. ;-)
I was expecting a response like this :-)
> > Are we getting towards an ORM? ;-) I'm a little scared of those...
>
> Solar_Sql_Table is already an object-relation manager: the object is
> the PHP object, the relation is (technically) the table. But it's a
> table-based ORM, not a record-based ORM; compare the TableModule
> pattern with the ActiveRecord pattern (from Fowler's "Patterns of
> Enterprise Application Architecture").
Yes, I meant ActiveRecord.
> But no, I'm not looking to make a record-based ORM solution, at least
> not yet ... I'm still a big fan of table-based management. It would
> be nice to have some Rails-ish features like auto-joins of related
> tables, but that's not a big deal for me to have right now.
I'm with you on this. For me the thing is that I want to know
*exactly* what my code does, so I have no problem doing selects with
S_S_Select or doing basic inserts and deletes with S_S_Table. When you
begin to do stuff like auto-joins you somehow start to loose the grip.
I don't know, maybe I'm just plain wrong :-), but I really haven't had
any need for an ActiveRecord.
> Does that help?
Always!
--
Antti Holvikari <http://antti.dotgeek.org/blog>
Zend Certified Engineer (ZCE)
More information about the solar-talk
mailing list