Hi again!

Have a look at http://framework.zend.com/manual/en/zend.db.table.relationships.html . I know it seems complicated at first, but you'll learn to appreciate it quickly. For your example, I could imagine that the table userinfo depends on the table user, so you'd put:

protected $_dependentTables = array('Userinfo');

in the class definition for User. Then you could use the magic function:

$user->findUserinfo()

on a User Row.

MF

José de Menezes Soares Neto wrote:
Hi again my friends!

Now, I need to work with two or more tables, each table has some information I need. For example, table USERS has the users, but I need too table USERINFO, which have the user information...

I created a class that extends Zend_Db_Table_Abstract:

class Users extends Zend_Db_Table_Abstract
{
    protected $_name = 'users';
}

But, I would like to manage more tables, and get flexibility to combine then... these kind of things...

Best regards,

José


--
Maurice Fonk

[EMAIL PROTECTED]
http://naneau.nl/

Scio me nihil scire

Reply via email to