j4mie / paris

A lightweight Active Record implementation for PHP5, built on top of Idiorm.

Home Page:http://j4mie.github.com/idiormandparis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

has_many_through returns empty array

pontoffeltier opened this issue · comments

The has_many_through method seems to have a bug where it doesn't trigger the __set magic function for line 479 ->where("{$join_table_name}.{$key_to_base_table}", $this->$base_table_id_column); ;
To fix this, $this->$base_table_id_column should be $this->get($base_table_id_column)

Never mind -.-
I put the model attributes into my model classes effectively disabling the magic getter...