/** * {@inheritDoc} */ public function appendQuery(QueryBuilderInterface $queryBuilder, $placeholder) { $queryBuilder->select($this->getWithDefaults(array('full' => 'content')))->from(AnnounceMapper::getTableName())->whereEquals('lang_id', "'{$this->getLangId()}'")->andWhereEquals('published', '1')->andWhereLike('title', $placeholder)->orWhereLike('full', $placeholder); }
/** * {@inheritDoc} */ protected function getTables() { return array(AnnounceMapper::getTableName(), CategoryMapper::getTableName()); }