How does the Zend Framework handle optimistic locking?

I want to make the user aware, at the point when they submit an edit to an existing record, if that record has been updated by another user between the first user getting the data onscreen to edit, and them submitting it to the database, i.e. I do not want the first user to simply overwrite the second users changes without being aware of them.