Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: default behavior in annotation #220

Open
Adam314 opened this issue Mar 11, 2016 · 0 comments
Open

Idea: default behavior in annotation #220

Adam314 opened this issue Mar 11, 2016 · 0 comments

Comments

@Adam314
Copy link

Adam314 commented Mar 11, 2016

Many people ask how to selectively purge some entities or how to control purging-appending behavior. Why don't we add an annotation support in entities like this (notice the new fixtures mapping):

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\DataFixtures\Mapping as Fixture;
/**
 * @ORM\Table()
 * @ORM\Entity()
 * @Fixture(defaultBehavior="append")
 */
class SomeEntity { ....

So for each entity we could set default behavior of append, purge or ignore this entity. This way we'd have more control over purging tables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant