Changeset 4466 for trunk/lib/Doctrine
- Timestamp:
- 06/02/08 16:00:50 (7 months ago)
- Location:
- trunk/lib/Doctrine
- Files:
-
- 3 modified
-
EntityManager.php (modified) (1 diff)
-
Query/ParserResult.php (modified) (1 diff)
-
Query/Production/RangeVariableDeclaration.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Doctrine/EntityManager.php
r4456 r4466 141 141 $this, new Doctrine_ClassMetadata_CodeDriver()); 142 142 $this->_unitOfWork = new Doctrine_Connection_UnitOfWork($conn); 143 $this->_eventManager = new Doctrine_EventManager();143 //$this->_eventManager = new Doctrine_EventManager(); 144 144 145 145 if ($name !== null) { -
trunk/lib/Doctrine/Query/ParserResult.php
r4455 r4466 143 143 $baseAlias = strtolower(preg_replace('/[^A-Z]/', '\\1', $componentName)); 144 144 145 // We may have a situation where we have all chars are lowercased 146 if ( $baseAlias == '' ) { 147 // We simply grab the first 2 chars of component name 148 $baseAlias = substr($componentNam, 0, 2); 149 } 150 145 151 $alias = $baseAlias; 146 152 -
trunk/lib/Doctrine/Query/Production/RangeVariableDeclaration.php
r4451 r4466 145 145 //echo "Identification Variable: " .$this->_identificationVariable . "\n"; 146 146 147 $tableAlias = $parserResult->generateTableAlias($c omponentName);147 $tableAlias = $parserResult->generateTableAlias($classMetadata->getClassName()); 148 148 $parserResult->setQueryComponent($this->_identificationVariable, $queryComponent); 149 149 $parserResult->setTableAlias($tableAlias, $this->_identificationVariable); … … 217 217 $parent = $path; 218 218 } catch (Doctrine_Exception $e) { 219 //echo "Tried to load class metadata from '".$relationName."'\n";219 echo "Tried to load class metadata from '".$relationName."'\n"; 220 220 $this->_parser->semanticalError($e->getMessage()); 221 221 … … 229 229 } 230 230 231 $tableAlias = $parserResult->generateTableAlias($path); 231 $tableAlias = $parserResult->generateTableAlias($classMetadata->getClassName()); 232 233 //echo "Table alias: " . $tableAlias . "\n"; 234 232 235 $parserResult->setQueryComponent($this->_identificationVariable, $queryComponent); 233 236 $parserResult->setTableAlias($tableAlias, $this->_identificationVariable);