trongate / trongate-framework

The Trongate PHP framework
https://trongate.io
Other
1.12k stars 100 forks source link

prevent table names from keywords and reserved words #165

Open jchouix opened 8 months ago

jchouix commented 8 months ago

Hello, if I want to create a module with the name "groups", I will have a problem because the word "groups" is reserved in the mysql database. To resolve this problem, it would be desirable to surround the $target_tbl variable with backticks (`) in the Model.php file. What do you think ? Best regards.

DaFa66 commented 8 months ago

Yes, this would be an improvement to the Model.php and also implemented in the Desktop app as it hangs when creating apps with hyphens in the name - e.g. 'tg-app'.

trongate commented 6 months ago

Simon, please do remind me to look into this during a livestream.