populateFromQuery

Populate an entity with a query object. Make sure the names of the columns match the keys in the object.

Returns

  • This function returns the populated object

Arguments

Examples

var user = ormService.populateFromQuery( ormService.new( "User" ), ormService.list( "User", { id=4 } ) );

Last updated