php-activerecord icon indicating copy to clipboard operation
php-activerecord copied to clipboard

ActiveRecord implementation for PHP

Results 100 php-activerecord issues
Sort by recently updated
recently updated
newest added

There is no functionality to provide cyclical selection of big data. I propose to add some method like `findByBatch(headSize = 30)` that will select with shift of 30 records (LIMIT/OFFSET)...

When new-ing a new record and doing a save, the primary key is stored as a string. It's not until you do a find that it is properly converted to...

I am trying out php active record, it's a great ORM, however I am at a standstill. I have looked around google, blogs, phpactiverecord documentation as well as statckoverflow for...

recentactivity datetime NOT NULL if I do $this->info = account\models\user\Info::find_by_email($this->data['USRIE']) ActiveRecord\DateTime::$DEFAULT_FORMAT = 'db'; $this->info->recentactivity->setTimestamp(time()); $this->info->save(); or $this->info->recentactivity->setTimestamp(time()); $this->info->save(); or $this->info->recentactivity = date('Y-m-d H:i:s'); $this->info->save(); or $this->info->recentactivity->setDate(date('Y'), date('m'), date('d')); $this->info->save(); or...

It cannot change $primary_key of entity. After save is still in database original value. $ended_uniq_customer_actions = \Db\ActionsToCustomersUniq::find('all', array( 'conditions' => array( 'customers_uniq_id = ?', 16728 ) )); $ended_uniq_customer_actions[0]->customers_uniq_id = 15892;...

It's not clear from the [documentation](http://www.phpactiverecord.org/projects/main/wiki/Associations#has_many_through) whether the association you want to go `through` is on the current class, or the far end class. In the example, the `payments` association...

I had a issue with using ActiveRecord with Twig Templating Engine due to the way how ActiveRecord looks up __isset(), I changed it to match the __get() method and it...

I have the following (MySQL) database schema: ``` sql CREATE TABLE `jobs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, `export_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) )...

As discussed in #546, I was seeing an issue whereby foreign key attributes where not being set during a `create_association` for a `belongs_to`. This is one potential fix: it overrides...