2008年11月20日星期四

[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

没有评论: