Re: SDG Datasource DB_Dataobject
| From: | Mads Lie Jensen | Date: | Mon, 25 Feb 2008 13:21:01 +0000 |
| Subject: | Re: SDG Datasource DB_Dataobject | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28571@lists.php.net to get a copy of this message | ||
On Mon, 25 Feb 2008 13:29:12 +0100, ojaiml@nerim.net (Olivier Guilyardi)
wrote:
>Yes, that sounds like a bug. It looks like we misunderstood Dataobject's
>automatic getters and setters. In some other ORMs, my_sql_field gets wrapped by
>a clean getMySqlField() method, and that may have confused us. Dataobject seems
>to create a method named getMy_sql_field(). That's quite an odd name, but anyway
>SDG should be compatible with it (we'll certainly retain BC with the current
>behaviour though).
Strange name or not, if I have named my columns in the database
field_name, I would at first presume to use getField_name() to retrieve
it.
I rarely use _ in column-names now, but I'm working a bit with some old
data.
>Please post a bug report at:
>http://pear.php.net/bugs/report.php?package=Structures_DataGrid_DataSource_DataObject
Done: http://pear.php.net/bugs/bug.php?id=13199
--
Mads Lie Jensen - mads@gartneriet.dk - ICQ #25478403
Gartneriet - http://www.gartneriet.dk/