That's an interesting case. For most Oracle Developer there's a standard to make all table name plurals (users vs user). That would help you to avoid this issue.
Basically, your problem is not just the quotes, you are using an Oracle Reserverd Words: User. More information about Oracle Reserverd Words here: http://docs.oracle.com/cd/B19306_01/em.102/b40103/app_oracle_reserved_words.htm
If you are the responsible to design the database do the following ASAP:
- Avoid using Oracle Reserved Words as table name.
- Keep table name as plural, to avoid that particular case.
If the database cannot be altered, you will have to keep looking for a workaround to this issue.
I have a workaround in mind that you need to test it, edit your model User.php
and change the table name to include the quotes.
protected $name = '"User"';
I have tested and the quotes appeared in the generated SQL query but it fails to execute because I'm using MySQL and all table name are wrapped with `
.