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
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
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
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
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