示例#1
0
文件: Dropper.php 项目: bono-cms/News
 /**
  * {@inheritDoc}
  */
 protected function getTables()
 {
     return array(PostMapper::getTableName(), CategoryMapper::getTableName());
 }
示例#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);
 }