enum Athena::ORM::UnitOfWork::EntityState
#
The state of an entity in relation to a UnitOfWork, as returned by UnitOfWork#entity_state.
Members#
Managed = 0#
The entity has a persistent identity and is managed by the unit of work, so its changes are written on flush. This includes new entities that have been persisted but not yet flushed.
New = 1#
The entity has no persistent identity and isn't associated with the unit of work, such as one just created with .new.
Detached = 2#
The entity has a persistent identity, but isn't (or is no longer) associated with the unit of work, such as after AORM::EntityManager#clear or AORM::EntityManager#detach.
Removed = 3#
The entity is managed by the unit of work, but is scheduled to be deleted from the database on the next flush.