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

Register the PropertyInfo extractor from the Symfony Bridge #502

Merged
merged 4 commits into from
Apr 21, 2016

Conversation

dunglas
Copy link
Contributor

@dunglas dunglas commented Dec 10, 2015

Allow to extract metadata about properties coming from Doctrine using the new PropertyInfo component of Symfony 2.8.

}

foreach ($config['entity_managers'] as $name => $entityManager) {
$this->loadPropertyInfoExtractor($name, $container);
Copy link
Member

Choose a reason for hiding this comment

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

don't loop a second time. Do it in loadOrmEntityManager

@dunglas
Copy link
Contributor Author

dunglas commented Dec 11, 2015

@stof PR updated

@dunglas
Copy link
Contributor Author

dunglas commented Jan 13, 2016

Is it possible to merge this PR?

@fabpot
Copy link
Member

fabpot commented Feb 2, 2016

👍

* @param string $entityManagerName
* @param ContainerBuilder $container
*/
protected function loadPropertyInfoExtractor($entityManagerName, ContainerBuilder $container)
Copy link
Member

Choose a reason for hiding this comment

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

should be private imo

@dunglas
Copy link
Contributor Author

dunglas commented Feb 2, 2016

@xabbuh's comments fixed.

"doctrine/orm": "The Doctrine ORM integration is optional in the bundle."
"symfony/web-profiler-bundle": "To use the data collector.",
"doctrine/orm": "The Doctrine ORM integration is optional in the bundle.",
"symfony/property-info": "To use the PropertyInfo integration."
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure this suggestion makes sense. Saying "install this component to use this component" looks weird. People wanting to use PropertyInfo will install it. And DoctrineBundle does not provide any feature based on the PropertyInfo which would let people wonder whether they want to use PropertyInfo. It only provides the inner parts for PropertyInfo.

@kimhemsoe
Copy link
Member

Status?

@dunglas
Copy link
Contributor Author

dunglas commented Feb 21, 2016

@kimhemsoe finished. Can be merged (according to me).

@dunglas
Copy link
Contributor Author

dunglas commented Apr 19, 2016

Sorry to insist, but is it possible to merge this one?

@mikeSimonson
Copy link
Contributor

@dunglas Thanks

@mikeSimonson mikeSimonson merged commit fd51907 into doctrine:master Apr 21, 2016
@dunglas
Copy link
Contributor Author

dunglas commented Apr 21, 2016

@mikeSimonson thank you very much for the review and the merge!

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.

6 participants