[Dbix-class] Re: new name for "as"
Matt S Trout
dbix-class at trout.me.uk
Fri Nov 3 13:25:18 GMT 2006
Steven Mackenzie wrote:
> A. Pagaltzis wrote:
>> * Matt S Trout <dbix-class at trout.me.uk> [2006-11-03 09:50]:
>>
>>> Anybody got any suggestions on a new name? construct_as maybe?
>>>
>> `accessor_name`?
>>
>> Regards,
>>
> 'accessor_name' isn't really appropriate becuase the docs state that no
> actual accessor is created, and you must use ->get_column('<name>'.)
> Although it would seem sensible to change the behaviour to create the
> accessor wouldn't it? Is there a reason that no accessor is created at
> the moment?
Yes, because generating random accessors all over your classes without you
asking for them would be a horrific bug source.
> Or
> 'is':
I quite like 'is', actually.
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Dbix-class
mailing list