Database.query.add

Syntax

query.add()
query.add(data)
query.add(entity)

Description

Creates if necessary and adds an entity to a Database.query.

Parameters

Parameter Type Description
data Object Data to be set to newly created entity.
entity Database.entity Entity to be added.

Return Value

Returns added entity.

Remarks

Examples

See also Database.query examples.

Adding to repository

Adding to query

See also

[Database.query.create], [Database.repository.create], [Database.repository.add]

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.