[fw-general] Zend_Db_Table: Problem with Relatationships

2008-03-06 Thread Jan Pieper
Hi guys, i am trying to create references between my model classes based on Zend_Db_Table_Abstract but it does not function. I donĀ“t know why and so I hope someone of you guys can help me :-) _I have 2 simple tables:_ flabben.article (id, [...], author_id) flabben.author (id, [...]) *File:*

Re: [fw-general] Zend_Db_Table: Problem with Relatationships

2008-03-06 Thread Bill Karwin
Jan Pieper wrote: $article-findDependentRowset('Author'); But the result is an Exception :( Zend_Db_Table_Exception: No reference from table Author to table Article In you example, a foreign key in Article references a primary key in Author. So Author is the parent, Article is the

Re: [fw-general] Zend_Db_Table: Problem with Relatationships

2008-03-06 Thread Jan Pieper
Yeah, this works fine :-) -- Jan Jan Pieper wrote: $article-findDependentRowset('Author'); But the result is an Exception :( Zend_Db_Table_Exception: No reference from table Author to table Article In you example, a foreign key in Article references a primary key in Author. So Author