Sergio Ivanuzzo
Sergio Ivanuzzo

Reputation: 1922

Symfony2 FOS extend base user from yaml

I always use yaml when generating entities. When installing FOSUserBundle, after generating User entity, I also had to edit my Bundle\Entity\User.php for extending User from FOSUser. So, is there any way to extend base entity from yaml?

Thanks a lot for any help!

Upvotes: 0

Views: 149

Answers (1)

Lionel
Lionel

Reputation: 53

You can't extends in YAML beaucause the object inheritance is not a Symfony component, it directly managed by the php core.

See Documentation : http://php.net/manual/en/keyword.extends.php

Upvotes: 1

Related Questions