Example #1
0
 /**
  * @uses sql\query\parser\Basic::setHandler()
  * @uses sql\schema\component\Foreign::filterQuery()
  * @return array|common\argumentable
  */
 protected function loadQuery()
 {
     if (!$this->useElements()) {
         $result = null;
     } else {
         if ($this->isSub() and $id = $this->getElement('id', null, false)) {
             $result = $this->loadSub($id);
         } else {
             $result = parent::loadQuery();
         }
     }
     return $result;
 }