[Dbix-class] Ambiguity in the DBIx::Class::InflateColumn POD

Matt S Trout dbix-class at trout.me.uk
Wed Jun 21 15:02:54 CEST 2006


brett gardner wrote:
> Just checking that when the documentation in the 
> DBIx::Class::InflateColumn package says under the inflate_column method :
> 
> "The |inflate| method is called when you access the field, while the 
> |deflate| method is called when the field needs to used by the database."
> 
> it means that this is only called when you use the field accessor method 
> and not the get_column method. eg this method is only called when you do 
> "$foo->bar" and not when you do "$foo->get_column('bar')".
> 
> This is currently how it works and I am just checking that this is by 
> design and won't be changed in the future.

Yes, it's by design, hence the existence of get/set_inflated_column to deal 
with the inflated value if you aren't going through the accessors.

-- 
      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