Пример #1
0
 public function testAction()
 {
     $authors = new Authors();
     $me = $authors->find(1)->current();
     echo '<span>' . $me->name() . '</span>';
     $meAgain = $authors->fetchRow('id = 3');
     $pubs = $meAgain->findDependentRowset('Entry')->toArray();
     //Zend_Debug::dump($pubs);
     // list of entries by tag "Test tag 1"
     $tags = new Tags();
     $firstTag = $tags->fetchRow('id = 2');
     $tagEntries = $firstTag->findManyToManyRowset('Entry', 'TagsLinks')->toArray();
     //Zend_Debug::dump($tagEntries);
 }