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