On Tue, Oct 20, 2009 at 5:45 PM, Raphael <raphox.ara
...@gmail.com> wrote:
> ow ..
> the latest versions of symfony to humanize undergo changes that will not be
> good on this case. Inserted to replace an '_id'.
> Your code is:
> http://trac.symfony-project.org/browser/branches/1.2/lib/util/sfInfle...
> On Tue, Oct 20, 2009 at 5:24 PM, Jonathan Wage <jonw...@gmail.com> wrote:
>> I think maybe it should be this:
>> $field = 'field_name';
>> $method = sprintf('generate%sFilename', str_replace(' ', '',
>> sfInflector::humanize($field));
>> $method === 'generateFieldNameFilename'
>> I am not sure if a sfInfector function exists to do what I am doing above.
>> Thanks, Jon
>> On Tue, Oct 20, 2009 at 3:14 PM, Raphael <raphox.ara...@gmail.com> wrote:
>>> Hi my friends,
>>> sfFormDoctrine.class.php in line 511 there is a check to use a personal
>>> method, but it uses:
>>> $method = sprintf('generate%sFilename', $field);
>>> It would be nice to use something like:
>>> $method = sprintf('generate%sFilename', sfInflector::humanize($field));
>>> what do you think?
>>> --
>>> Raphael Almeida Araújo
>>> Homepage: http://sites.google.com/site/raphoxaraujo
>> --
>> Jonathan H. Wage (+1 415 992 5468)
>> Open Source Software Developer & Evangelist
>> sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org
>> You can contact Jonathan about Doctrine, Symfony and Open-Source or for
>> training, consulting, application development, or business related questions
>> at jonathan.w...@sensio.com
> --
> Raphael Almeida Araújo
> Homepage: http://sites.google.com/site/raphoxaraujo