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

Get all entries and fields from Doctrine Repository #71

Closed
stephanvierkant opened this issue Jun 10, 2014 · 1 comment
Closed

Get all entries and fields from Doctrine Repository #71

stephanvierkant opened this issue Jun 10, 2014 · 1 comment

Comments

@stephanvierkant
Copy link

I'm looking for an easy way to get all entities in one Excel file, with all fields added to it automatically.

I think I've found the functions for the job, but maybe someone did this before and wants to share it's code?

$rows = $em->getRepository('AcmeBundle:Users')->findAll();
$columns = $em->getClassMetadata('AcmeBundle:Users')->getFieldNames();
@liuggio
Copy link
Owner

liuggio commented Jun 11, 2014

I think you would have more help in the symfony mailing list.
Thanks a lot.

@liuggio liuggio closed this as completed Jun 11, 2014
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

No branches or pull requests

2 participants