2008年7月29日星期二

Re: [fw-db] Custom Row Class - _get() from two tiers

Fabrice Terrasson wrote:
>
> Is $_cols planned to that purpose ?
> That kind of aliases would be fine to abstract column names from
> attributes of object.
>

I have two answers to this question:

1. No, there doesn't seem to be a proposal yet for this feature. But a
gentleman named Fernando Chucre posted some code on the Zend_Db mailing list
for such a feature recently. Perhaps he'll develop a proposal for it.

2. That feature wouldn't account for the scenario described by Dee. That
scenario involved some tricky use of PHP object notation, not simply column
aliasing. In other words, how would you alias "variant->colname" to
"variant_column"?

Regards,
Bill Karwin
--
View this message in context: http://www.nabble.com/Custom-Row-Class---_get%28%29-from-two-tiers-tp18697512p18714480.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: