Skip to content

Instantly share code, notes, and snippets.

@muracms
Last active April 8, 2016 17:03
Show Gist options
  • Select an option

  • Save muracms/782a4c677bd16ea5cfec to your computer and use it in GitHub Desktop.

Select an option

Save muracms/782a4c677bd16ea5cfec to your computer and use it in GitHub Desktop.
$.getBean('entityName');
application.serviceFactory('entityName');
entity.loadBy();
entity.get{relatedEntity}Iterator();
entity.get{relatedEntity}Query();
entity.get{relatedEntity}();
entity.getFeed();
entity.validate();
entity.getError();
entityFeed.addParam();
entityFeed.getQuery();
entityFeed.getIterator();
feed = $.getBean('entityName').getFeed();
feed.addParam(column='myColumn', criteria='test');
it = feed.getIterator();
while ( it.hasNext() ) {
obj = it.next();
WriteOutput(obj.getMyColumn());
}
onBeforeMyEntitySave($) {
var bean = $.event('bean');
...
}
entityName
table
datasource
discriminatorColumn
discriminatorValue
orderby
readonly
// Mura-specific attributes
bundleable
cacheName
dbtype
manageSchema
useTrash
name
persistent
fieldtype
cfc
fkcolumn
type
cascade
singularName
orderby
lenth
default
ormtype
// Mura-specific attributes
loadkey
dataType
nullable
required
validate
message
regex
comparable
minValue
maxValue
minLength
maxLength
minCollection
maxCollection
minList
maxList
inList
method
lte
lt
gte
gt
eq
neq
preLoad();
postLoad();
preUpdate();
postUpdate();
preCreate();
postCreate();
postInsert();
preDelete();
postDelete();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment