CareSet / DURC

DURC is reverse CRUD
MIT License
3 stars 2 forks source link

DURC seems to think all tables that end in "s" are rude, for example "status" #24

Open kchapple opened 6 years ago

kchapple commented 6 years ago

Got an error running DURC:mine on default databases:

Fatal Error: northwind_model->orderStatus ends in an 's'. But Laravel tried to do smart things with plurals, which prevents autogenerated code from being easy. So for now, just rename your table so that it does not end in 's'

ftrotter commented 5 years ago

I am torn regarding this feaature. I cannot remember what it is that Laravel will "automagically" try to do if something ends in an 's'.

It is also very possible that the code generation is now so specific, that there is no reason to actually worry about this anymore, since many of the automagic things in Laravel have been shortcutted by explicitly specifying the defaults.

I think we should try to turn off this prevention mechanism and see if everything still works as expected. It is really a test problem rather than a code problem.

ftrotter commented 4 years ago

I do not want to worry about this for the 1.0 version. Changing this, and being wrong about Laravels future functionality creates potential "bugs on update"