Example #1
0
 /**
  * @param $sType
  * @return array
  */
 public function getTagBindsByType($sType)
 {
     $this->check();
     $m = new Manager();
     $m->setDI($this->getDI());
     $b = $m->createBuilder();
     $aResult = $b->from('TagBind')->join('Tags', 'Tags.id = TagBind.tag')->join('TagTypes', 'TagTypes.id = Tags.tag_type')->where('TagTypes.type = :t: AND TagBind.entity_type = :et: AND TagBind.entity_id = :ei:')->getQuery()->execute(array('t' => $sType, 'et' => $this->entity_type, 'ei' => $this->getId()));
     return $aResult;
 }