-
How can I write this query using Idiorm?
``` sql
SELECT * FROM table
WHERE (column1 LIKE '%value%' OR column2 LIKE '%value1%')
AND column3='value3'
ORDER BY column1 ASC
```
-
please anyone help me with this simple query
i jut started with idiorm but cant understand how i can do this using idiorm
``` php
$result = mysql_query("SELECT imdb_id FROM shows WHERE imdb_id IS NOT…
ghost updated
8 years ago
-
As written in docs I'm trying to create own model with custom methods:
``` php
class User extends Model {
public $email;
public static $_table = 'users';
public function roles() {
…
-
Hi,
I have a table 'article' and the primary key is 'article_id', when I use idiorm like this:
`ORM::for_table('article')->select('article.article_id', 'id')->limit(3)->find_many();`
It gives the fol…
-
Let's say that we join two tables. If we try to update a column from the second table and save the update, there is an error.
> PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLST…
-
Hi, first of, Idiorm/Paris is AWESOME!
That said, I'm having an issue right now where I want to delete a row in a table where the primary key is a unique combination of two fields. Looking at the cod…
-
MySQL 5.7.8 introduce a new data format The JSON Data Type.
Would be great to see idiorm to support this data format, since it could bring more flexibility and it’s really compatible with the idea…
-
When working with pdo_dblib for connect to MS SQL Server 2008,
Idiorm uses " (double quote) as quote character but this produces query errors on Red Hat Server with PHP5.2 and above mentioned SQL Se…
-
When writing `or` conditions like
```
where_raw('(`age` = ? OR `age` = ?)', array(20, 25))
```
It would be nice not having to add the parentheses around the whole query. This could be easily achived…
-
Documentation for count(), sum() etc. doesn't say what the field for that method will be called in the result. Granted, it's not that hard to find out, but it would save some time if it was documented…