How can I increment a value in a column table using ORM in php
up vote
-1
down vote
favorite
I know using a RDBMS, I can do something like this, UPDATE tableName SET vote_up = vote_up + 1 WHERE user = $user.
How, then can I translate this to ORM?
NB. Am not using any ORM software like doctrine.
php mysql sql orm
add a comment |
up vote
-1
down vote
favorite
I know using a RDBMS, I can do something like this, UPDATE tableName SET vote_up = vote_up + 1 WHERE user = $user.
How, then can I translate this to ORM?
NB. Am not using any ORM software like doctrine.
php mysql sql orm
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I know using a RDBMS, I can do something like this, UPDATE tableName SET vote_up = vote_up + 1 WHERE user = $user.
How, then can I translate this to ORM?
NB. Am not using any ORM software like doctrine.
php mysql sql orm
I know using a RDBMS, I can do something like this, UPDATE tableName SET vote_up = vote_up + 1 WHERE user = $user.
How, then can I translate this to ORM?
NB. Am not using any ORM software like doctrine.
php mysql sql orm
php mysql sql orm
asked Nov 10 at 21:58
Gbenga Ogunbule
416
416
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243817%2fhow-can-i-increment-a-value-in-a-column-table-using-orm-in-php%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown