Created
August 23, 2010 19:57
-
-
Save cwage/546206 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stack trace | |
* at () | |
in SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query.php line 729 ... | |
726. | |
727. // check column existence | |
728. if ( ! $def) { | |
729. throw new Doctrine_Query_Exception('Unknown column ' . $field); | |
730. } | |
731. | |
732. if (isset($def['owner'])) { | |
* at Doctrine_Query->parseClause('SUM(o.total) * o.commission_percent') | |
in SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query.php line 854 ... | |
851. $index = false; | |
852. | |
853. foreach ($e as $part) { | |
854. $value[] = $this->parseClause($part); | |
855. } | |
856. | |
857. $trimmed = implode(', ', $value); | |
* at Doctrine_Query->parseSubquery('(SUM(o.total) * o.commission_percent)') | |
in SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query.php line 813 ... | |
810. $name = substr($expr, 0, $pos); | |
811. | |
812. if ($name === '') { | |
813. return $this->parseSubquery($expr); | |
814. } | |
815. | |
816. $argStr = substr($expr, ($pos + 1), -1); | |
* at Doctrine_Query->parseFunctionExpression('(SUM(o.total) * o.commission_percent)') | |
in SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query.php line 697 ... | |
694. if ($pos !== false && substr($term[0], 0, 1) !== "'") { | |
695. $name = substr($term[0], 0, $pos); | |
696. | |
697. $term[0] = $this->parseFunctionExpression($term[0]); | |
698. } else { | |
699. if (substr($term[0], 0, 1) !== "'" && substr($term[0], -1) !== "'") { | |
700. if (strpos($term[0], '.') !== false) { | |
* at Doctrine_Query->parseClause('(SUM(o.total) * o.commission_percent)') | |
in SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query.php line 631 ... | |
628. } | |
629. | |
630. $componentAlias = $this->getExpressionOwner($expression); | |
631. $expression = $this->parseClause($expression); | |
632. | |
633. $tableAlias = $this->getSqlTableAlias($componentAlias); | |
634. | |
* at Doctrine_Query->parseSelect('r.*, SUM(o.total) as sales, SUM(o.commission_total) AS commission, (SUM(o.total) * o.commission_percent) AS payout') | |
in SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Select.php line 37 ... | |
34. { | |
35. public function parse($dql) | |
36. { | |
37. $this->query->parseSelect($dql); | |
38. } | |
39. } | |
40. | |
* at Doctrine_Query_Select->parse('r.*, SUM(o.total) as sales, SUM(o.commission_total) AS commission, (SUM(o.total) * o.commission_percent) AS payout') | |
in SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Abstract.php line 2077 ... | |
2074. if (is_array($queryParts) && ! empty($queryParts)) { | |
2075. foreach ($queryParts as $queryPart) { | |
2076. $parser = $this->_getParser($queryPartName); | |
2077. $sql = $parser->parse($queryPart); | |
2078. if (isset($sql)) { | |
2079. if ($queryPartName == 'limit' || $queryPartName == 'offset') { | |
2080. $this->setSqlQueryPart($queryPartName, $sql); | |
* at Doctrine_Query_Abstract->_processDqlQueryPart('select', array('r.*, SUM(o.total) as sales, SUM(o.commission_total) AS commission, (SUM(o.total) * o.commission_percent) AS payout')) | |
in SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query.php line 1160 ... | |
1157. | |
1158. // FIX #1667: _sqlParts are cleaned inside _processDqlQueryPart. | |
1159. if ($queryPartName != 'forUpdate') { | |
1160. $this->_processDqlQueryPart($queryPartName, $queryParts); | |
1161. } | |
1162. | |
1163. // We need to define the root alias | |
* at Doctrine_Query->buildSqlQuery() | |
in SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query.php line 1126 ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment