Populate an entity with an XML packet. Make sure the names of the elements match the keys in the structure.
This function returns the populated object
The entity to populate
The xml string or xml document object to populate with
The xml root node to start the population with, by default it uses the XMLRoot.
Use scope injection instead of setter injection, no need of setters, just tell us what scope to inject to
Do not check if the setter exists, just call it, great for usage with onMissingMethod() and virtual properties
A list of keys to ONLY include in the population
A list of keys to exclude from the population
A list of keys to NULL when empty, specifically for ORM population. You can also specify "*" for all fields
A list of keys to NOT NULL when empty, specifically for ORM population. You can also specify "*" for all fields
When true, will automatically attempt to compose relationships from memento
var user = ormService.populateFromXML( ormService.new("User"), xml, "User");