[Solar-talk] The new model class discussion, some questions

Paul M Jones pmjones at ciaweb.net
Mon Feb 19 12:32:52 PST 2007


On Feb 19, 2007, at 2:23 PM, Antti Holvikari wrote:

> I can't say much about AR and ORM designs since I haven't used them at
> all. But it is that *exact* same reason as Paul mentions above that
> bothers me too. As I mentioned on #solarphp, it makes perfect sense to
> me that a model (table object) represents *many* records while a
> record (or a row) object represents *one* record.

I'm so glad I'm not the only one on that.  :-)


> I have yet to be convinced to the record-based approach. The table
> stuff seems more sane to me, at least for now. I'd like to hear more
> opinions about this. Any Zend guys near by?

Antti -- I *so* agree here.  I'm just not completely convinced.  I  
think the table-based approach is more sane, and more representative  
of the real underlying structure of what's going on with the SQL.  As  
an abstraction, it doesn't stray *too* far from what it represents,  
only just far enough to be useful in PHP.



--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.  <http://solarphp.com>

Join the Solar community wiki!  <http://solarphp.org>

Savant: The simple, elegant, and powerful solution for
templates in PHP.  <http://phpsavant.com>




More information about the solar-talk mailing list