Skip to content

fix: add src option for not standard paths #185

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

Closed
wants to merge 1 commit into from

Conversation

rampmaster
Copy link

I add custom option src for entity generator

@weaverryan
Copy link
Member

Hi there!

I agree that we can make this better :). But, I think there is a different solution that is better for DX. Instead of using Finder to look in the src/ directory, we should read the Doctrine metadata to load a real list of all of the entities. This should not be too difficult by using the DoctrineHelper class. Then, you will get the nice functionality without needing to know about or pass an option.

Do you want to update your PR to try this?

Cheers!

@rampmaster
Copy link
Author

Yes, not problem @weaverryan and thanks for your idea :-)

@mssimi
Copy link

mssimi commented Aug 6, 2018

@rampmaster Hey, any chance updating this PR? I need this feature.

@rampmaster
Copy link
Author

Yes, working.

@bastos71
Copy link

Hi @rampmaster ! I was about to create the same fix ^^
When this PR would be finish and accepted ?

@weaverryan
Copy link
Member

Closing in favor of #310 or #311

@weaverryan weaverryan closed this Nov 2, 2018
weaverryan added a commit that referenced this pull request Dec 20, 2018
This PR was squashed before being merged into the 1.0-dev branch (closes #311).

Discussion
----------

Fix Entity directory does not exist

Closes #299 according to #185 (comment)

Also alternative for #185, #265 and #310

Commits
-------

5f37c5d Remove invalid field mapping
06f5399 Invalidating cached AnnotationDriver::$classNames to find new entities
8b7c291 Fix 'src/Entity' directory does not exist
saylor-mik87786 added a commit to saylor-mik87786/maker-bundle that referenced this pull request Jun 3, 2025
This PR was squashed before being merged into the 1.0-dev branch (closes #311).

Discussion
----------

Fix Entity directory does not exist

Closes #299 according to symfony/maker-bundle#185 (comment)

Also alternative for symfony/maker-bundle#185, symfony/maker-bundle#265 and symfony/maker-bundle#310

Commits
-------

5f37c5d Remove invalid field mapping
06f5399 Invalidating cached AnnotationDriver::$classNames to find new entities
8b7c291 Fix 'src/Entity' directory does not exist
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.

5 participants