function findDocument() { $t = new Documents(); $db = $t->getAdapter(); $s = $t->select()->setIntegrityCheck(false)->distinct()->from('document')->join('article_document', 'article_document.document = document.id', array())->where('article_document.article = ?', $this->id)->limit(1); return $t->fetchOne($s); }