oegnus
oegnus

Reputation: 1

How to use a class from different directory in doctrine yaml mapping

I want doctrine yaml mapping file to point to an external class. My dir structure looks like this:

Can I configure doctrine to look for mapped classes in directory different than "src/SomeBundle/Entity"?

Upvotes: 0

Views: 387

Answers (1)

oegnus
oegnus

Reputation: 1

I needed to use custom prefix in doctrine mappings (doctrine.orm.entity_managers...mappings.MyMapping.prefix) to point different namespace.

Upvotes: 0

Related Questions