mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-939: Database Reverse Engineer Error #1163
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Dec 15, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user jreed:
Following the instructions in the documentation for reverse engineering a database causes an error. It works fine in Doctrine 2 Beta 4 but broke in RC1 and is still an issue in RC2. Executing the following code:
$em->getConfiguration()->setMetadataDriverImpl(
new \Doctrine\ORM\Mapping\Driver\DatabaseDriver(
$em->getConnection()->getSchemaManager()
));
$em->getConfiguration()->setEntityNamespaces(array('MyCompany\Model'));
$cmf = new \Doctrine\ORM\Tools\DisconnectedClassMetadataFactory($em);
$metadata = $cmf->getAllMetadata();
Generates this error:
Fatal error: Call to a member function getConfiguration() on a non-object in D:\dev\win\src\library\doctrine-orm\Doctrine\ORM\Mapping\ClassMetadataFactory.php on line 135
The error occurs when executing DisconnectedClassMetadataFactory::getAllMetadata()
@doctrinebot commented on GitHub (Dec 15, 2010):
Comment created by @beberlei:
Ah this is a doc error.
Code must be:
@doctrinebot commented on GitHub (Dec 18, 2010):
Comment created by @beberlei:
fixed
@doctrinebot commented on GitHub (Dec 18, 2010):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 29, 2010):
Comment created by netinho:
Hello,
On documentation of doctrine-orm 2.0:
I replaced and is working with
Please, if this way is the correct, update the documentation.
Thank you!