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