-
-
Notifications
You must be signed in to change notification settings - Fork 424
Change the base class for Doctrine repositories #4
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
Conversation
8207b80
to
1b6beda
Compare
{ | ||
public function __construct(RegistryInterface $registry) | ||
{ | ||
parent::__construct($registry, {{ repository_class_name }}::class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self::class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{ entity_class_name }}
actually
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I the explicitness, but maybe it's not great if people rename the class at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed :)
1b6beda
to
9ac02ce
Compare
9ac02ce
to
4f0114d
Compare
This PR was merged into the master branch. Discussion ---------- Change the base class for Doctrine repositories Commits ------- 4f0114d changed the base class for Doctrine repositories
{ | ||
public function __construct(RegistryInterface $registry) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parent class constructor only expects an instance of Doctrine\Common\Persistence\ManagerRegistry
. Do we really want to restrict that here?
No description provided.