EntityModel::Model - base class for model definitions
version 0.017
see EntityModel.
Returns a list of all pending entities for this model.
These will be applied on commit, or cleared on rollback.
Revert any pending changes for this model.
Apply the field definitions for an entity.
Populate the entity model from any information we can get from the data source.
Update this entity model so that it matches the given model.
Returns true if this entity model has identical content to another given model.
Virtual method for reading table definitions.
Helper method to create a new entity.
Generate an appropriate EntityModel::Entity for the given table name.
Add an EntityModel::Entity to this model.
Apply the actions, starting with the longest names first for removal, and shortest first for update and create.
Add all pending items, ordering to resolve dependencies as required.
Notify when there are pending uncommitted entries.
Tom Molesworth <cpan@entitymodel.com>
Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.
To install EntityModel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm EntityModel
CPAN shell
perl -MCPAN -e shell install EntityModel
For more information on module installation, please visit the detailed CPAN module installation guide.