[Solar-talk] Changes afoot: a new Model class

Paul M Jones pmjones at ciaweb.net
Thu Feb 8 10:40:15 PST 2007


On Feb 8, 2007, at 12:31 PM, Rodrigo Moraes wrote:

> On 2/8/07, Paul M Jones wrote:
>> You can specify any name you want ('area', 'comments') and point to
>> any model you want, using any foreign-key column you want.  Defaults
>> use the model name whenever possible.  Generally, I expect models
>> will be named in the plural, so you'll get plurals by default.
>
> This is much better and adds some flexibility. I don't mind about
> having to define the model and foreign key if I want to call the
> foreign model differently from the default.

Agreed.  The only problem, if it can be called that, is: you're going  
to *have* to define either the model or the fkcol no matter what in  
most cases.



--

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