[Solar-talk] Changes afoot: a new Model class
Paul M Jones
pmjones at ciaweb.net
Thu Feb 8 07:28:25 PST 2007
On Feb 8, 2007, at 7:19 AM, Rodrigo Moraes wrote:
> On 2/8/07, Antti Holvikari wrote:
>>> I must say i am not a fan of this singular/plural thingie. If I
>>> had to
>>> do that with french it would be a lot of work which has no added
>>> value
>>> to me.
>>>
>>> Keeping everything singular is simpler and removes a layer of magic.
>>
>> I must say I agree with Arnaud. As of now I vote for singular to keep
>> things simple. Then there is no question, what so ever, how to access
>> the related records. We like consistency, right? :-) There might even
>> be a case where I really don't know the plural of a certain word
>> (english isn't my primary language). Also, what if new irregular
>> words
>> are added to the dictionary?
>
> Yeah, I think we all would prefer if we could avoid this...
Revolt! Mutiny! Dissent! Well, never let it be said that the
Benevolent Tyrant does not listen. :-)
I am now working to remove the singular/plural inflection magic.
This will introduce a little more setup trouble, but you're all
correct: it's less magic and more explicit, especially when it comes
to non-English-only folks. Point well taken, and thanks for bringing
it up.
Arnaud, Antti -- I can't promise that everything will be singular by
default, but I can promise that the default will be to use the Model
class name as entered wherever possible. Then there's no inflection
anywhere.
Will that satisfy?
--
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