You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NotORM
Here is my query:
$song = $this->db->select('*')
->where('is_played', 0)
->where('song_id', $id)
->order('id')
->limit(1);
echo $this->db->select('*')->where('id', 2);
Result is: SELECT * FROM play WHERE (is_played = 0) AND (song_id = '1075371488') AND (id = 2) ORDER BY id LIMIT 1
How to clear preivous params query?
Allysson David
unread,
Oct 24, 2015, 12:15:51 AM10/24/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to not...@googlegroups.com
I can't see the table name anywhere, thus I can guess that the element $this->db actually stores the object representing the table "play".
All of NotORM methods both change the object which have called any of its methods and return itself to allow chaining, meaning that the one responsible for storing the "where-params" is the table-related object which was already modified previously.
How to solve? Instead of storing something like $notorm->play() in $this->db, please store the constructed $notorm object itself and run the queries like this: