Example #1
0
 /**
  * {@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);
 }
Example #2
0
 /**
  * {@inheritDoc}
  */
 protected function getTables()
 {
     return array(AnnounceMapper::getTableName(), CategoryMapper::getTableName());
 }