Jason,

I suggest you use Zend_Db_Table to retrieve corresponding row and store it
as a member variable (Zend_Db_Table_Row). You can expose its properties
using __get/set for ease of use. Extending Zend_Db_Table would be a bad
idea.

Karol


J DeBord wrote:
> 
> This may be partially a general oop question, but I hope someone can give
> me
> some advice.
> 
> If you want to build a User object, what is the best way to store it's
> attributes? Would a user object extend a Zend_Db_Table? Would you code a
> User class and have it interact with a UserTable extends Zend_Db_Table
> class? Can anyone provide a general example of code please? Or any advice?
> Books to read, sites to visit, etc...
> 
> Thanks a lot.
> 
> Jason DEBORD
> Limoges, France
> 
> http://www.jasondebord.net/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Db_Table-How-best-to-associate-an-object-with-a-db-table--tp23245110p23251895.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to