Closed ppatrik closed 9 years ago
It already is supported.
protected static $_primary_key = array('aid');
yes but here in temporal model it was written to only accept id
see
classes/model/temporal.php line 153
$query = static::query()
->where('id', $id) <------- this is not correct
->where($timestamp_start_name, '<=', $timestamp)
->where($timestamp_end_name, '>', $timestamp);
You'll have to wait until @stevewest gets back, to asses it.
I'm pretty sure this has something to do with the complexities of compound PK's, something your PR doesn't address either.
Temporal is limited to "id" by design. It's a current limitation of the v1 temporal model and will be addressed in v2.
tables should have other PK names than 'id', eg. 'table_id'