-
Not sure the best way to do:
http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html
-
create then save a default empty row
$one = Model::factory('foo')->create();
$one->save();
raises:
Warning: array_fill() : Number of elements must be positive in idiorm.php on line 592
#…
kaemu updated
11 years ago
-
Hi! I have this type of `composer.json` file:
```
{
"require": {
"vendor/required": "1.*",
"vendor/weak": "1.*"
}
}
```
and I install these components with the usual command:…
-
I'm running in an issue that only manifests when logging is on:
```
select_expr("FROM_UNIXTIME(`time`, '%Y-%c')", 'month')
```
I get a php warning:
```
vsprintf(): Too few arguments in /pa…
-
## Issue
When logging is on:
> ORM::configure('logging', true);
Queries containing the "%":
> $many = Model::factory('user')->where("active",1)->where_raw('username like "ben%"')->find_many();
Ra…
kaemu updated
11 years ago
-
Using 1.2.0 in my app I have a model like this:
``` php
class Config extends Model {
public static $_table = 'Sites';
}
```
When I call a find_array it does not use the table information
``` php…
-
Hi
How can I set the charset of Connection.
I use 'mysql:host=localhost;dbname=els;charset=utf8' as connection string.
It work on my laptop computer but when i run the code on server, It seams the cha…
-
Hi, first, great lib!
I'm triying to set a date field using NOW() in mySQL, is this possible with idiorm?
$content->created = 'NOW()';
does escape and fill the database with wrong data 0000-00-00…
Surt updated
11 years ago
-
Composer-compatible projects typically use PHP 5.3 and namespaces, and integrate with Composer's autoloading mechanism - as far as I know.
-
Using 1.2.2 in my app I have a model like this:
``` php
class Config extends Model {
public static $_table = 'Sites';
}
```
When I call a find_array it does not use the table information
``` php…