getInstance
is available in all handlers by default. WireBox can easily be injected in to any other class you need using inject="wirebox"
.for
you can utilize the each
function on arrays. For example:VirtualEntityService
from cborm.quickService:
dsl:myService.newEntity()
count
, max
, etc.) will return the appropriate value instead of an entity or collection of entities.false
false
"No [#entityName()#] found with id [#arguments.id#]"
all
will ignore any non-global constraints on the query.false
false
false
false
null
.true
true
operator
and the value
left null as a shortcut for equals (e.g. where( "column", 1 ) == where( "column", "=", 1 )
).false
builder.raw()
) can be passed as well.false
"and"
false
"No [#entityName()#] found with constraints [#serializeJSON( retrieveQuery().getBindings() )#]"
EntityNotFound
exception is thrown with the given or default error message.false
{}
false
{}
attributes
.false
false
false
{}
false
{}
attributes
.false
false
true
true
false
"No [#entityName()#] found with id [#arguments.id#]"
EntityNotFound
exception.true
false
{}
false
false
true
false
{}
false
false
getinstance("someQuickEntity")
to retrieve an entity, because that will already give you a new entity. If you are using a QuickService you will need this method for creating a new entityfalse
{}
false
false
MissingHydrationKey
is thrown.false
[]
false
false
newCollection
method. It receives the array of entities. You can return any custom collection you desire.false
[]