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

Drop Entity DAO support #246

Merged
merged 1 commit into from
Mar 9, 2016
Merged

Drop Entity DAO support #246

merged 1 commit into from
Mar 9, 2016

Conversation

foxycode
Copy link
Contributor

@foxycode foxycode commented Mar 8, 2016

Related to #238

@TomasVotruba
Copy link
Contributor

👍 Looks great

->setFactory('@Kdyby\Doctrine\EntityManager::getDao', [new Code\PhpLiteral('$entityName')])
->setParameters(['entityName'])
->setImplement('Kdyby\Doctrine\EntityDaoFactory')
$builder->addDefinition($this->prefix('repositoryFactory'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this definition can be removed altogether

@foxycode
Copy link
Contributor Author

foxycode commented Mar 9, 2016

@fprochazka Cleaned more and tests are still passing, but I think there could be more cleanup.

What can't I understand is, why RepositoryFactory definitions in OrmExtension are duplicate.
here: https://git.io/vakAT
and here: https://git.io/vakA3

Are they needed both?

@fprochazka
Copy link
Member

@foxycode

  • one is generated factory to create default repository, if entity has not defined custom repository, to still allow dependency injection for that repository
  • the other one is RepositoryFactory implementation

also, it's relevant to this point from #238

drop autodiscovery of repository<=>entity, make it a configuration section without magic (it should configure listeners that will override metadata settings appropriately)

fprochazka added a commit that referenced this pull request Mar 9, 2016
@fprochazka fprochazka merged commit d21dfc6 into Kdyby:master Mar 9, 2016
@fprochazka
Copy link
Member

Looks good, thank you!

@foxycode foxycode deleted the drop-dao branch March 9, 2016 16:39
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

Successfully merging this pull request may close these issues.

3 participants