-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Request: Ability to ignore models when generating php docs for models #35
Comments
You can do the opposite, set which models you do want to get checked. |
I understand @barryvdh, but it becomes very difficult if there are a lot of models. I actually wanted to generate for all the models but as I said, it errors out for the MongoDB models and doesn;t generate the docs... |
Can you also provide as a configuration for the
like
both these configurations help when you want to automate using the composer scripts. |
Well, I actually wanted to make 'yes' the default option, but to not break for existing people, I added a suggestion. |
I was actually scared to use the -W option, because if I had any custom functions or relationships, was worried if they get overwritten as well, haven't tried this option at all. cool, will look forward to this. Thanks for considering this.. |
To write to single file instead, use --nowrite or -N (as mentioned in #35)
Okay, added a --nowrite (-N) and --ignore (-I) option. The -W option should just overwrite the phpdocs, but it is good to make a backup before trying ;) |
cool stuff, let me try it now. |
Unfortunately, this getDoctrineDriver issue has raised over User model and seems like it is also related to MongoDB package, as I'm using jenssegers/mongodb |
Is it possible to get this working setting a mode that ignores database entity schematics but keeps generating phpdocs for scope methods and things like that? |
Agreed, It would be nice to have basic phpdocs for mongodb models. |
I'm pretty late to the party, but connectionless Eloquent-like models like |
Can a configuration be provided using which some models can be ignored when generating php docs for the models.
My use case is the following:
My application has few models communicating to MongoDB and some to MySQL.
When ide-helper generates the phpdocs, it throws and error
So this just errors out and does not generate the PHP docs.
So if there was a configuration, something like
we could ignore the required models.
The text was updated successfully, but these errors were encountered: