Honestly, I'm not sure - never happened to me to have a use case for manual
mapping, so it is really hard to know what is going on there.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 3 February 2014 15:01, Nima Sadjadi <[email protected]> wrote:

> Thanks a lot for advice. How can I dump it manually? Using the command
> below?
>
> $ php vendor/bin/doctrine orm:generate-proxies /proxies
>
> If this is the correct way to dump manually I get the error:
>
> Fatal error: Call to a member function setInheritanceType() on a
> non-object in /home2/[edited]/composer/entities/ModulesConfig.php on line 5
>
> Since I did auto-generate entities from cli, I edited like:
>
> namespace Entities;
> use Doctrine\ORM\Mapping\ClassMetadata;
> class modules_config {
> public static function loadMetadata(ClassMetadata $metadata) {
>
> I think I should comment:
> //$metadata->setInheritanceType(ClassMetadataInfo::INHERITANCE_TYPE_NONE);
>
> //$metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_IDENTITY);
>
> Am I correct guessing that I should remove these two lines from entity
> files to correct the proxy generation problem?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to