2008年11月20日星期四

Res: [fw-db] Foreign key + Innodb + Mysql + Pdo_Mysql

Hi,

I hope that link is usefull:

http://framework.zend.com/manual/en/zend.db.table.relationships.html

ZF Reference guide:

http://framework.zend.com/manual/en/


Best regards,
Luiz Fernando


----- Mensagem original ----
De: Miguel Vieira Dr. (e-mail pessoal) <vieira@miguelvieira.com.pt>
Para: fw-db@lists.zend.com
Enviadas: Quinta-feira, 20 de Novembro de 2008 16:32:00
Assunto: [fw-db] Foreign key + Innodb + Mysql + Pdo_Mysql


Hello,

I have some doubts about the pd_mysql with foreign keys .. Can models set in
the respective classes of tables, I wanted to know whether addition:

class CatEvento extends Zend_Db_Table_Abstract
{
protected $_name = 'catevento';
protected $_primary = 'ID';

}

class Eventos extends Zend_Db_Table_Abstract
{
protected $_name = 'eventos';
protected $_primary = 'ID';

}

(Eventos have a reference for CatEvento)

You must have something else to identify the keys ... They get me a tutorial
or an article that speaks more about it ...? Or give me an example of how to
proceed when you have foreign keys.

Saudações Cordiais,
Miguel Vieira

Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

没有评论: