I have not found any info in the documentation on the constant: Phalcon\Mvc\Model::DIRTY_STATE_DETACHED
What does it stand for?
I assume that DIRTY_STATE_PERSISTENT marks a model which is saved in the database (i.e. is not dirty), and DIRTY_STATE_TRANSIENT marks the one which has not been synced with the database yet (i.e. is dirty).