本文整理汇总了PHP中Criteria::getDao方法的典型用法代码示例。如果您正苦于以下问题:PHP Criteria::getDao方法的具体用法?PHP Criteria::getDao怎么用?PHP Criteria::getDao使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Criteria
的用法示例。
在下文中一共展示了Criteria::getDao方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: process
/**
* @return JoinCapableQuery
**/
public function process(Criteria $criteria, JoinCapableQuery $query)
{
Assert::isNotNull($this->property);
return $query->get(SQLFunction::create($this->getFunctionName(), $criteria->getDao()->guessAtom($this->property, $query))->setAlias($this->alias));
}
示例2: process
/**
* @return JoinCapableQuery
**/
public function process(Criteria $criteria, JoinCapableQuery $query)
{
Assert::isNotNull($this->property);
return $query->get($criteria->getDao()->guessAtom($this->property, $query), $this->alias);
}
示例3: process
/**
* @return JoinCapableQuery
**/
public function process(Criteria $criteria, JoinCapableQuery $query)
{
return $query->having($this->logic->toMapped($criteria->getDao(), $query));
}
示例4: setCriteria
/**
* @throws WrongArgumentException
* @return UnifiedContainer
**/
public function setCriteria(Criteria $criteria)
{
Assert::isTrue($criteria->getDao() === null || $criteria->getDao() === $this->dao, "criteria's dao doesn't match container's one");
if (!$criteria->getDao()) {
$criteria->setDao($this->dao);
}
$this->worker->setCriteria($criteria);
return $this;
}
示例5: getFunction
/**
* @return SQLFunction
**/
protected function getFunction(Criteria $criteria, JoinCapableQuery $query)
{
Assert::isNotNull($this->property);
return SQLFunction::create('count', $this->property ? $criteria->getDao()->guessAtom($this->property, $query) : $criteria->getDao()->getIdName());
}
示例6: process
/**
* @return JoinCapableQuery
**/
public function process(Criteria $criteria, JoinCapableQuery $query)
{
return $query->get($this->mappable->toMapped($criteria->getDao(), $query), $this->alias);
}