getDocumentId())) { return null; } return Doctrine::getTable('Document')->findOneById($this->getDocumentId()); } }