fuel/core — pull request #1142 by younes0 (2012-09-07 14:57:11+00:00)
Title: Model_Crud accepts now composite primary keys

The Model_Crud accepts a composite primary keys with this commit:

protected static $_primary_key = array('user_id', 'friend_id');

So the model crud will updates, deletes correctly tables with multiple/composte primary keys.
$_primary_key and find_by_pk accepts either a string or an array

\MyModel::find_by_pk(array(
'user_id' => 10,
'friend_id' => 14,
));

See todos: I didn't figure out how to returns ids since:
- I don't know if it should returns an array
- I use postgresl which causes model_crud/orm not returning ids anyway.