2008年7月29日星期二

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

Bill Karwin wrote:
>
> Don't design your application around some innovative trick of code that no
> one who uses the app will see.
>

That is very true and probably what I would be heading towards, it was
simply to try and make it easier for future use of all model classes not
just these two (i.e. not having to repeat product too many times...
product->product_).

But you are right there is no real gain, it's still tied to whichever table
you would be acting on. So I will leave it by the wayside I think, maybe for
single classes the get method could simply add the prefix but for this there
is no gain. Agreed! Thanks for all your help anyway Bill (and everyone
else).

Simon

-----
Simon

http://www.ajb007.co.uk/
--
View this message in context: http://www.nabble.com/Custom-Row-Class---_get%28%29-from-two-tiers-tp18697512p18715830.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: