41
Quote:
it would be nice to have Criteria being able to create other type of queries besides SELECT, like INSERT, UPDATE and DELETE.
Now we have facilities for DELETE, UPDATE, INSERT in class/model
but they are general usage. (search for them and you will find)
After more investigation I think general usage is good and enough. ( but we can add some little and enhance it)
If someone like me want especial queries he can use $db
but without hard-coded table.
eg in the current system you should use your object handler extended from XoopsPersistableObjectHandler:
$sql = ...
$result = $this->db->query($sql, $limit, $start);
so the above will be executed on my object table.