Re: [fw-general] Zend_Db_Table

2006-10-10 Thread Bruno Viana
Lewt me explain better what i asked. I have a field called NAME (in upper case), but the Zend mapping don't see it when i use Zend_Db_Table. So, when i write in lower case( name ), thats works.
On 10/10/06, Abu Hurayrah [EMAIL PROTECTED] wrote:
Since you've brought it up, is there anywhere where I can see theexplanation/justification given for this automatic routine?I think itmakes ZF a lot harder to work with when you use it with older systemswhere the schema name system may be a mix of different
styles...StudlyCaps, camelCase, underscore_separated, or allinone.Short of rewriting the __get()  __set() methods for each class/objectyou want to use, is there any other easy way to handle this?Abu Hurayrah
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]Hidayah Online - Guidance According to the Qur'an and Sunnah
http://hidayahonline.org/`A'isha, the wife of Allah's Apostle (may peace be upon him), reportedAllah's Apostle (may peace be upon him) as saying:/Kindness is not to be found in anything but that it adds to its beauty
and it is not withdrawn from anything but it makes it defective./narrated in Sahih Muslim, Book 3, Number 6274gonyuu wrote: I think what Bruno is referring to is the camel-case renaming of the fields
 in Zend_Db_Row; i.e. zend_field gets mapped as zendField. I ran into the same problems when I had fields named ZendField. I basically couldn't access these fields because of the case sensitivity in MySQL (zendfield
 would not work). My solution thus far has been to bear with lower-case field names :( gonyuu Terry Cullen wrote: The manual:
 ?php class ClassName extends Zend_Db_Table { // default table name is 'class_name' // but we want to map to something else protected $_name = 'another_table_name';
 } ? On 10/2/06, Bruno Viana [EMAIL PROTECTED] wrote: I use the Zend_Db_Table with a test table, it works fine.. but when i use
 table of my old app that fields are in upper case it's don't work, but i rewrite my fields to lower case it works. I had to rewrite all my fields to lower case or have a fix (or work
 around) to this? -- Fui para os bosques viver de livre vontade. Para sugar todo o tutano da vida, para aniquilar tudo o que não era vida e para, quando morrer, não
 descobrir que não vivi.-- Fui para os bosques viver de livre vontade. Para sugar todo o tutano da vida, para aniquilar tudo o que não era vida e para, quando morrer, não descobrir que não vivi.


[fw-general] Zend_Db_Table

2006-10-02 Thread Bruno Viana
I use the Zend_Db_Table with a test table, it works fine.. but when i use table of my old app that fields are in upper case it's don't work, but i rewrite my fields to lower case it works.I had to rewrite all my fields to lower case or have a fix (or work around) to this?
-- Fui para os bosques viver de livre vontade. Para sugar todo o tutano da vida, para aniquilar tudo o que não era vida e para, quando morrer, não descobrir que não vivi.