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 "dependent".  You are querying the
reverse relationship, which does not exist in this example.

Use this:

  $article->findParentRow('Author');

Regards,
Bill Karwin
-- 
View this message in context: 
http://www.nabble.com/Zend_Db_Table%3A-Problem-with-Relatationships-tp15882889s16154p15883753.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to