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

ADDED - search id in DB when model instance #409

Merged
merged 3 commits into from
Jan 31, 2022

Conversation

YannikFirre
Copy link
Contributor

Hello,

This PR allows you to search for an existing ID in DB rather than using when no example.

Regards

@shalvah
Copy link
Contributor

shalvah commented Jan 20, 2022

I don't really understand what's going on here. You have to provide a test case that describes what this is doing. If you don't know how to add a test to the project, you can at least post some example code here.

@YannikFirre
Copy link
Contributor Author

Yes sorry for the lack of information.

When no example comment is specified, Scribe takes a randomly generated id which can cause a "ModelNotFoundException".

My modification allows to select the 1st id in database if it exists instead of taking a randomly generated id

@shalvah shalvah merged commit 887d895 into knuckleswtf:master Jan 31, 2022
@YannikFirre
Copy link
Contributor Author

Thanks, Sorry I forgot =/

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.

2 participants