Rui::Model::Entity - base class for domain models
Domain models are models that with the following features:
getSchema()
template method. Properties have a name, a tangram compatible type, and
a name of a model class of the holder. The holder is an adapter on the
property. The only interface for get/setting properties is by getting a
holder on the property (getHolder($propertyName)
), then working vs.
that holder. Through this holder you can also listen to events on the
property.
They have one event, Change, that fires when the object has changed. In
that respect they are like value models.
You create them with a call to create()
, not new()
.