当前位置: 首页>>代码示例>>PHP>>正文


PHP Connection::getExpressionBuilder方法代码示例

本文整理汇总了PHP中Doctrine\DBAL\Connection::getExpressionBuilder方法的典型用法代码示例。如果您正苦于以下问题:PHP Connection::getExpressionBuilder方法的具体用法?PHP Connection::getExpressionBuilder怎么用?PHP Connection::getExpressionBuilder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Doctrine\DBAL\Connection的用法示例。


在下文中一共展示了Connection::getExpressionBuilder方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Construtor
  *
  * @param Connection $connection
  * @param array $rootAliases
  * @param array $fieldMap
  */
 public function __construct(Connection $connection, array $rootAliases, array $fieldMap = array())
 {
     $this->rootAliases = $rootAliases;
     $this->fieldMap = $fieldMap;
     $this->conn = $connection;
     $this->expr = $this->conn->getExpressionBuilder();
 }
开发者ID:brodaproject,项目名称:broda,代码行数:14,代码来源:DbalQueryExpressionVisitor.php

示例2: expr

 /**
  * Gets an ExpressionBuilder used for object-oriented construction of query expressions.
  * This producer method is intended for convenient inline usage. Example:
  *
  * <code>
  *     $qb = $conn->createQueryBuilder()
  *         ->select('u')
  *         ->from('users', 'u')
  *         ->where($qb->expr()->eq('u.id', 1));
  * </code>
  *
  * For more complex expression construction, consider storing the expression
  * builder object in a local variable.
  *
  * @return \Doctrine\DBAL\Query\Expression\ExpressionBuilder
  */
 public function expr()
 {
     return $this->connection->getExpressionBuilder();
 }
开发者ID:betes-curieuses-design,项目名称:ElieJosiePhotographie,代码行数:20,代码来源:QueryBuilder.php

示例3: getExpressionBuilder

 /**
  * Gets the ExpressionBuilder for the connection.
  *
  * @return \Doctrine\DBAL\Query\Expression\ExpressionBuilder
  * @deprecated please use $this->getQueryBuilder()->expr() instead
  */
 public function getExpressionBuilder()
 {
     $backtrace = $this->getCallerBacktrace();
     \OC::$server->getLogger()->debug('Doctrine ExpressionBuilder retrieved in {backtrace}', ['app' => 'core', 'backtrace' => $backtrace]);
     return parent::getExpressionBuilder();
 }
开发者ID:reverserob,项目名称:core,代码行数:12,代码来源:connection.php

示例4: expr

 /**
  * Alias for <code>$this->getDatabase()->getExpressionBuilder()</code>.
  *
  * @final
  *
  * @return \Doctrine\DBAL\Query\Expression\ExpressionBuilder
  */
 protected final function expr()
 {
     return $this->db->getExpressionBuilder();
 }
开发者ID:lokhman,项目名称:silex-arm,代码行数:11,代码来源:Repository.php


注:本文中的Doctrine\DBAL\Connection::getExpressionBuilder方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。