Issue Details (XML | Word | Printable)

Key: DDC-225
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Jonathan H. Wage
Reporter: Valery Dubrava
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Doctrine 2 - ORM

ConvertMappingTask invalid method _getSourceByType($type, $source)

Created: 23/Dec/09 12:47 PM   Updated: 27/Dec/09 05:37 AM
Component/s: ORM, Tools
Affects Version/s: None
Fix Version/s: 2.0-ALPHA4
Security Level: All


 Description  « Hide
The method _getSourceByType($type, $source) in the class ConvertMappingTask has a little error: there are no brackets when propery getConfiguration are called. See code below, the error occurs on line marked with red:

private function _getSourceByType($type, $source)
{
// If --from==database then the source is an instance of SchemaManager
// for the current EntityMAnager
if ($type == 'database') {
$em = $this->getConfiguration->getAttribute('em');
return $em->getConnection()->getSchemaManager();
} else { return $source; }
}



 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Guilherme Blanco added a comment - 26/Dec/09 03:13 PM
In r6981 this issue was fixed. Thanks for the report!

Valery Dubrava added a comment - 27/Dec/09 05:37 AM
Thanks for fix =)