Unit of Work

The methods from unit of work are commonly used indirectly by calling other methods from scope and entity manager.
The unit of work static methods, such as isClean() or getObjectState() can be used to confirm or check the state of an object.
To get the unit of work:

let unitOfWork = wetland.getManager().getUnitOfWork();

.cascadeSingle()

Prepares cascade for a single entity. This method is used in .prepareCascades().