fuel / orm

Fuel PHP Framework - Fuel v1.x ORM
http://fuelphp.com/docs/packages/orm/intro.html
152 stars 96 forks source link

Temporal moel find_revision first/last #323

Closed sagikazarmark closed 10 years ago

sagikazarmark commented 10 years ago

Model_Temporal::find_revision could accept 'first' as timestamp paramater, so the first revision of the same entity could be returned

emlynwest commented 10 years ago

Temporal functionality will be rewritten for v2, this will be added to the list of features.

emlynwest commented 10 years ago

A thought just occurs. What do you mean by "first" as the current revision will always be the "first"?

sagikazarmark commented 10 years ago

I mean first to be the first revision, and last to be the current revision, which makes no sense, as null can be used now to get the current revision in this function. So probably the "first" is the only which makes sense.

emlynwest commented 10 years ago

That makes more sense. I'll make sure it's included in v2 temporal.