php-activerecord
php-activerecord copied to clipboard
Has_Many will not find default primary key of "id" if it is not in first column of table.
Took me 5 hours to figure out why my relationship was not being pulled. Come on find out it was testing it against the wrong field of the table. Could be helpful to throw an exception if Primary key not found instead of assuming first column is the key.
Thanks