-
I have a database with '**birth_date**' column, which can be NULL or a date.
If I use plain 'echo' to output **birth_day**, it works in either case - as null and as a date.
If however I'm using Tw…
-
I want to run this query over MySQL database through Idiorm:
_SQL_:
``` sql
DELETE `table_1`, `table_2`
FROM `table_1`
INNER JOIN `table_2`
WHERE `table_1`.`id` = {$variableID}
AND `table_1`.`id` …
-
Lets image I have a model of class `User`. I have a namespace to the `User` class, which is `vendor\model`. My table name is `user`.
Using the factory method, everything works as expected:
```
Model…
-
Is is possible to use PDO's `bindValue` or `bindParam`?
At the moment, to send through an integer without having it wrapped in quotes, you have to use `set_expr()`, which means you need to sanitise i…
ghost updated
10 years ago
-
very good library! really really good!
but might consider using static:: instead of self::. this will add more power to your classes as it will allow also to override your static methods.
```
class …
-
I was very dissapointed after I've found that this feature is not implemented. Do you have any plans to do it?
ghost updated
10 years ago
-
If calling a method that isn't supplied in the class, PHP 5.5 hangs.
ORM::forTable('account')->create() ... works
ORM::forTable('account')->creates() ... hangs
-
Hello,
I cannot Alter a table with the raw_query syntax.. like
```
ORM::for_table('test')->raw_query("ALTER TABLE testAUTO_INCREMENT = 100")->find_(one|many)();
```
any hints how i can execute non…
nmkr updated
10 years ago
-
I would like see Idiorm and Paris documented with the PHPDoc standard (http://www.phpdoc.org/).
The libraries are currently well documented, but in a fashion that doesn't help much where an IDE is co…
-
To make Idiorm UTF-8 compatible, add:
array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")
to the setup_db function in the main class.
Code:
```
private static function setup_db() {
…
ghost updated
10 years ago