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

[VariationBundle] Added option repository #4856

Merged
merged 1 commit into from
Apr 25, 2016

Conversation

GSadee
Copy link
Member

@GSadee GSadee commented Apr 23, 2016

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets
License MIT

@pjedrzejewski pjedrzejewski added the Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). label Apr 24, 2016
@@ -115,7 +116,7 @@ private function addClassesSection(ArrayNodeDefinition $node)
->scalarNode('model')->isRequired()->cannotBeEmpty()->end()
->scalarNode('interface')->isRequired()->cannotBeEmpty()->end()
->scalarNode('controller')->defaultValue(ResourceController::class)->cannotBeEmpty()->end()
->scalarNode('repository')->cannotBeEmpty()->end()
->scalarNode('repository')->defaultValue(OptionRepository::class)->cannotBeEmpty()->end()
Copy link
Member

Choose a reason for hiding this comment

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

This couples it to Doctrine ORM, we do not specify driver specific repositories in Configuration class. You should load a driver file, which will contain the repo. With VariationBundle it can be a bit more complex, because we generate the services, but I am pretty sure @lchrusciel will be able to help here because we have figured out this with ArchetypeBundle.

@GSadee GSadee force-pushed the option-repository branch 4 times, most recently from e8cc406 to 4212574 Compare April 25, 2016 09:43
/**
* @author Grzegorz Sadowski <grzegorz.sadowski@lakion.com>
*/
interface OptionRepositoryInterface
Copy link
Member

Choose a reason for hiding this comment

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

Should extend Sylius\Component\Resource\Repository\RepositoryInterface

@pjedrzejewski pjedrzejewski merged commit 2f37043 into Sylius:master Apr 25, 2016
@pjedrzejewski
Copy link
Member

Thank you Grzesiu!

@GSadee GSadee deleted the option-repository branch September 22, 2017 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants