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

[BC Break] Initial repository cleanup #6873

Merged
merged 2 commits into from
Nov 28, 2016

Conversation

michalmarcinkowski
Copy link
Contributor

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

@michalmarcinkowski michalmarcinkowski added the BC Break PRs introducing BC breaks (do not even try to merge). label Nov 26, 2016
@michalmarcinkowski michalmarcinkowski force-pushed the repositories-cleanup branch 4 times, most recently from 3457af8 to 46e7d92 Compare November 26, 2016 09:24
->getResult()
;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Why removing this? You pretty much always need zone with its members.

Copy link
Contributor Author

@michalmarcinkowski michalmarcinkowski Nov 26, 2016

Choose a reason for hiding this comment

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

This method is only used in a Behat context and I'm not sure you will ever use it in your application, because it's more likely that you will use code for querying, zone name is not unique.

Using "default" joins is a separate topic, if we want to introduce it we should do it for all entities.

;
}

/**
* {@inheritdoc}
*/
public function createListQueryBuilder($locale)
public function findByName($name, $locale)
Copy link
Member

Choose a reason for hiding this comment

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

findOneByName?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The name is not unique, so we can have more than 1 object returned by this method.

@@ -24,7 +24,6 @@ public function createListQueryBuilder($locale)
{
return $this
->createQueryBuilder('o')
->addSelect('translation')
Copy link
Member

Choose a reason for hiding this comment

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

I am pretty sure this will cause to lazy load translation contents anyway, as they will not be part of the select clause.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right! There are many methods without selects, we will have to add them...

@pjedrzejewski pjedrzejewski merged commit bde94de into Sylius:master Nov 28, 2016
@pjedrzejewski
Copy link
Member

Thanks Michał!

@michalmarcinkowski michalmarcinkowski deleted the repositories-cleanup branch December 3, 2016 14:36
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
…leanup

[BC Break] Initial repository cleanup
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
…leanup

[BC Break] Initial repository cleanup
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
…leanup

[BC Break] Initial repository cleanup
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
…leanup

[BC Break] Initial repository cleanup
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
…leanup

[BC Break] Initial repository cleanup
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
…leanup

[BC Break] Initial repository cleanup
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
…leanup

[BC Break] Initial repository cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Break PRs introducing BC breaks (do not even try to merge).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants