Open olaulau opened 1 year ago
Yes, STATUS is a MySQL reserved key word: https://dev.mysql.com/doc/refman/8.0/en/keywords.html#keywords-8-0-detailed-S
Nonreserved keywords are permitted as identifiers without quoting. Reserved words are permitted as identifiers if you quote them as described in Section 9.2, “Schema Object Names”: https://dev.mysql.com/doc/refman/8.0/en/identifiers.html
yes, but we can use it with quotes, so the framework can do it ? it seems to have a special behavior on this case. BTW, in this case I'm using a postgresql database (in which "status" is not a reserved keyword)
F3 v3.8.1 PHP v8.2
trying to set the property like this :
output :
it adds a anonymous property, but doesn't set the real db property correctly.
just renaming the DB field and set it with the new name works well. maybe this is a special keyword, that we shouldn't use ?
setting the value with this syntax works correctly :
$object->set("status", "value");