-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
BUG. PHQL error while only inserting to table with 2 columns #2019
Labels
Comments
Hello, I have the same issue, I solved with something like this: $this->modelsManager->executeQuery("INSERT INTO Featured (id,articleid) VALUES (:id:,:articleid:)",array('id' => NULL,'articleid' => $value[$i])); although it's not a beautiful solution. $featured=new Featured();
$featured->articleid=$value[$i];
$featured->save(); |
maxgalbu
added a commit
to maxgalbu/cphalcon
that referenced
this issue
Apr 12, 2014
@andresgutierrez fixed in #2328 |
It's probably not fixed on 2.0, but I didn't check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a table in my database that has 2 columns in it. First column is the id and the second one is the name. if i try to run
I will get "Unknown expression" but if I do
it will add the row. I added an extra column to the table for test and it would add the row without me specifying the id column.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: