php-activerecord
php-activerecord copied to clipboard
ActiveRecord implementation for PHP
I try to see the website www.phpactiverecord.org but ist a problem in na server, Heavy Load access. :/
All void methods, like `Model->set_attributes`, should return instance of self ($this) instead of void thus making instance method call possible (PHP 5.4). Sample use: ``` php $mod[] = (new SomeModel())->set_attributes($attr);...
I suggest to move the project's website to github pages infrastructure It'll improve uptime and integrated with CI a simple push can update the project Motivation: https://github.com/jpfuentes2/php-activerecord/issues/507
It looks like, this project is inactive for more than 1 year. I really like this library, very straight forward, minimal features. Only missing part is the migration. I am...
Greetings. According to the EER Diagram and the Classes below, how can I produce the Query A? Can we push the Solution B to better use the joins array? **EER...
Hi Guys, I'm trying to use with a table without primary key but I can't. Can I do this? I have a table without primary key and the table need...
how to do so through AR and what am I doing wrong? ```mysql SELECT r.recipe_id as `id`,r.craft_chance as `chance`,i.i_image as `image`,i.i_market_hash_name as `name`,ir.rarity,it.type FROM `recipes` as r LEFT JOIN `items`...
If you try to connect to a sqlite db, you get a "table not found {table_name}" error.
Warning: Declaration of ActiveRecord\DateTime::setTime($hour, $minute, $second = NULL) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL) in /var/www/syph-app/vendor/php-activerecord/php-activerecord/lib/DateTime.php on line 0
Depending on your MySQL configuration, errors like this can appear: ``` PDOException' with message 'SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '2014-07-19 09:59:36 UTC' for column 'updated_at' at row...