Re: [fw-general] Zend_Db_Table How best to associate an object with a db table?

2009-04-27 Thread J DeBord
Thanks Cem, I am going to look at Zend_Db_Table_* classes for sure. I appreciate the guidance. And for everyone, I just read this article of Matthew's http://weierophinney.net/matthew/archives/202-Model-Infrastructure.html and it is awesome. Thanks Matthew. On Mon, Apr 27, 2009 at 12:58 PM, Cem

Re: [fw-general] Zend_Db_Table How best to associate an object with a db table?

2009-04-27 Thread J DeBord
Karol, I thought about using Zend_Db_Table_Row somehow. Would the Row object become a variable of the user class? Then if the User's attributes change, you would actually be changing the attributes of the Row object? This sounds great, I just don't have enough experience to know if this is the best

Re: [fw-general] Zend_Db_Table How best to associate an object with a db table?

2009-04-27 Thread Karol Grecki
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

Re: [fw-general] Zend_Db_Table How best to associate an object with a db table?

2009-04-26 Thread Sudheer Satyanarayana
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 User

[fw-general] Zend_Db_Table How best to associate an object with a db table?

2009-04-26 Thread J DeBord
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