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