@@ -242,17 +242,17 @@ |
||
242 | 242 | public function getUnitOfWork(); |
243 | 243 | |
244 | 244 | /** |
245 | - * Gets a hydrator for the given hydration mode. |
|
246 | - * |
|
247 | - * This method caches the hydrator instances which is used for all queries that don't |
|
248 | - * selectively iterate over the result. |
|
249 | - * |
|
250 | - * @deprecated |
|
251 | - * |
|
252 | - * @param int $hydrationMode |
|
253 | - * |
|
254 | - * @return \Shitty\ORM\Internal\Hydration\AbstractHydrator |
|
255 | - */ |
|
245 | + * Gets a hydrator for the given hydration mode. |
|
246 | + * |
|
247 | + * This method caches the hydrator instances which is used for all queries that don't |
|
248 | + * selectively iterate over the result. |
|
249 | + * |
|
250 | + * @deprecated |
|
251 | + * |
|
252 | + * @param int $hydrationMode |
|
253 | + * |
|
254 | + * @return \Shitty\ORM\Internal\Hydration\AbstractHydrator |
|
255 | + */ |
|
256 | 256 | public function getHydrator($hydrationMode); |
257 | 257 | |
258 | 258 | /** |
@@ -138,8 +138,8 @@ |
||
138 | 138 | public function __toString() |
139 | 139 | { |
140 | 140 | return strtoupper($this->joinType) . ' JOIN ' . $this->join |
141 | - . ($this->alias ? ' ' . $this->alias : '') |
|
142 | - . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '') |
|
143 | - . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : ''); |
|
141 | + . ($this->alias ? ' ' . $this->alias : '') |
|
142 | + . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '') |
|
143 | + . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : ''); |
|
144 | 144 | } |
145 | 145 | } |
@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | if ($first) $first = false; else $sql .= ' AND '; |
71 | 71 | |
72 | 72 | $sql .= $targetTableAlias . '.' . $sourceColumn |
73 | - . ' = ' |
|
74 | - . $sourceTableAlias . '.' . $quoteStrategy->getColumnName($class->fieldNames[$targetColumn], $class, $platform); |
|
73 | + . ' = ' |
|
74 | + . $sourceTableAlias . '.' . $quoteStrategy->getColumnName($class->fieldNames[$targetColumn], $class, $platform); |
|
75 | 75 | } |
76 | 76 | } else { // many-to-many |
77 | 77 | $targetClass = $sqlWalker->getEntityManager()->getClassMetadata($assoc['targetEntity']); |
@@ -100,8 +100,8 @@ discard block |
||
100 | 100 | ); |
101 | 101 | |
102 | 102 | $sql .= $joinTableAlias . '.' . $joinColumn['name'] |
103 | - . ' = ' |
|
104 | - . $sourceTableAlias . '.' . $sourceColumnName; |
|
103 | + . ' = ' |
|
104 | + . $sourceTableAlias . '.' . $sourceColumnName; |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | foreach ($props as $name => $prop) { |
75 | 75 | $ident += 4; |
76 | 76 | $str .= str_repeat(' ', $ident) . '"' . $name . '": ' |
77 | - . $this->dump($prop) . ',' . PHP_EOL; |
|
77 | + . $this->dump($prop) . ',' . PHP_EOL; |
|
78 | 78 | $ident -= 4; |
79 | 79 | } |
80 | 80 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | foreach ($obj as $k => $v) { |
88 | 88 | $str .= PHP_EOL . str_repeat(' ', $ident) . '"' |
89 | - . $k . '" => ' . $this->dump($v) . ','; |
|
89 | + . $k . '" => ' . $this->dump($v) . ','; |
|
90 | 90 | $some = true; |
91 | 91 | } |
92 | 92 |
@@ -67,7 +67,7 @@ |
||
67 | 67 | public function resolve($className) |
68 | 68 | { |
69 | 69 | if (isset($this->instances[$className = trim($className, '\\')])) { |
70 | - return $this->instances[$className]; |
|
70 | + return $this->instances[$className]; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | return $this->instances[$className] = new $className(); |
@@ -1431,7 +1431,7 @@ |
||
1431 | 1431 | |
1432 | 1432 | if (Type::hasType($mapping['type']) && Type::getType($mapping['type'])->canRequireSQLConversion()) { |
1433 | 1433 | if (isset($mapping['id']) && $mapping['id'] === true) { |
1434 | - throw MappingException::sqlConversionNotAllowedForIdentifiers($this->name, $mapping['fieldName'], $mapping['type']); |
|
1434 | + throw MappingException::sqlConversionNotAllowedForIdentifiers($this->name, $mapping['fieldName'], $mapping['type']); |
|
1435 | 1435 | } |
1436 | 1436 | |
1437 | 1437 | $mapping['requireSQLConversion'] = true; |
@@ -707,13 +707,13 @@ |
||
707 | 707 | return $joinColumn; |
708 | 708 | } |
709 | 709 | |
710 | - /** |
|
711 | - * Parses the given field as array. |
|
712 | - * |
|
713 | - * @param SimpleXMLElement $fieldMapping |
|
714 | - * |
|
715 | - * @return array |
|
716 | - */ |
|
710 | + /** |
|
711 | + * Parses the given field as array. |
|
712 | + * |
|
713 | + * @param SimpleXMLElement $fieldMapping |
|
714 | + * |
|
715 | + * @return array |
|
716 | + */ |
|
717 | 717 | private function columnToArray(SimpleXMLElement $fieldMapping) |
718 | 718 | { |
719 | 719 | $mapping = array( |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Doctrine ORM |
|
4 | - * |
|
5 | - * LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the new BSD license that is bundled |
|
8 | - * with this package in the file LICENSE.txt. |
|
9 | - * If you did not receive a copy of the license and are unable to |
|
10 | - * obtain it through the world-wide-web, please send an email |
|
11 | - * to [email protected] so I can send you a copy immediately. |
|
12 | - */ |
|
3 | + * Doctrine ORM |
|
4 | + * |
|
5 | + * LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the new BSD license that is bundled |
|
8 | + * with this package in the file LICENSE.txt. |
|
9 | + * If you did not receive a copy of the license and are unable to |
|
10 | + * obtain it through the world-wide-web, please send an email |
|
11 | + * to [email protected] so I can send you a copy immediately. |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | namespace Doctrine\ORM\Tools\Pagination; |
15 | 15 |
@@ -1,19 +1,19 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Doctrine ORM |
|
4 | - * |
|
5 | - * LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the new BSD license that is bundled |
|
8 | - * with this package in the file LICENSE. This license can also be viewed |
|
9 | - * at http://hobodave.com/license.txt |
|
10 | - * |
|
11 | - * @category DoctrineExtensions |
|
12 | - * @package DoctrineExtensions\Paginate |
|
13 | - * @author David Abdemoulaie <[email protected]> |
|
14 | - * @copyright Copyright (c) 2010 David Abdemoulaie (http://hobodave.com/) |
|
15 | - * @license http://hobodave.com/license.txt New BSD License |
|
16 | - */ |
|
3 | + * Doctrine ORM |
|
4 | + * |
|
5 | + * LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the new BSD license that is bundled |
|
8 | + * with this package in the file LICENSE. This license can also be viewed |
|
9 | + * at http://hobodave.com/license.txt |
|
10 | + * |
|
11 | + * @category DoctrineExtensions |
|
12 | + * @package DoctrineExtensions\Paginate |
|
13 | + * @author David Abdemoulaie <[email protected]> |
|
14 | + * @copyright Copyright (c) 2010 David Abdemoulaie (http://hobodave.com/) |
|
15 | + * @license http://hobodave.com/license.txt New BSD License |
|
16 | + */ |
|
17 | 17 | |
18 | 18 | namespace Doctrine\ORM\Tools\Pagination; |
19 | 19 |