• RK's avatar
    [#1261] get_key now pulls from $original instead · 258169ea
    RK authored
    This is in reference to issue #1261, where Model->get_key() returns
    the key from the $attributes instead of from the $original property.
    This breaks the functionality of a model with a primary key that may
    change, as the SQL generated will be something like:
    
    UPDATE `model` SET `key` = 'new-key' WHERE `key` = 'new-key';
    
    Which won't update the model in the database.
    258169ea
Name
Last commit
Last update
..
relationships Loading commit data...
model.php Loading commit data...
pivot.php Loading commit data...
query.php Loading commit data...