Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Improve fixtures 2 #633

Merged
merged 1 commit into from
Jul 18, 2020
Merged

Conversation

wbloszyk
Copy link
Member

This PR will add type hints and move repeatable code parts to methods.

@wbloszyk wbloszyk marked this pull request as ready for review July 16, 2020 13:53
@jordisala1991 jordisala1991 requested a review from a team July 18, 2020 10:19
@@ -13,6 +13,7 @@

namespace AppBundle\Entity\Classification;

use Doctrine\Common\Collections\ArrayCollection;
Copy link
Member

Choose a reason for hiding this comment

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

Isn't better to use Collection for typehint ?

@@ -13,6 +13,7 @@

namespace AppBundle\Entity\Classification;

use Doctrine\Common\Collections\ArrayCollection;
use Sonata\ClassificationBundle\Entity\BaseCollection;

/**
Copy link
Member

Choose a reason for hiding this comment

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

Not sure we should keep the comment

Copy link
Member Author

Choose a reason for hiding this comment

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

Lets ignore it in this PR. Some pedantic and use best symfony practices is require anyway and this can be done there.

@jordisala1991 jordisala1991 merged commit 0adb96c into sonata-project:master Jul 18, 2020
@jordisala1991
Copy link
Member

Thank you @wbloszyk

@wbloszyk wbloszyk deleted the improve_fixtures_2 branch July 18, 2020 19:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants