Using the new ActiveEntity service like this...
local.objCourseType = entityNew("CourseType").new(properties=rc);
...causes this error...
Error Messages: invalid call of the function populate (C:\website\icdms\webroot\coldbox\system\orm\hibernate\ActiveEntity.cfc), second Argument (SCOPE) is of invalid type, can't cast Object type [Struct] to a value of type [string]
Following the code from ActiveEntity.cfc to VirtualEntityService.cfc to BaseORMService.cfc and then back to the populate() method in ActiveEntity.cfc it seems that this method doesn't take the "target" argument supplied by BaseORMService.populate() therefore I would suggest changing ActiveEntity.cfc from...
any function populate(required struct memento,
arguments.target = this;
any function populate(required any target,
required struct memento,
...or remove it completely and let inheritance find the populate() in BaseORMService.cfc
The same would apply to populateFromJSON(), populateFromXML(), populateFromQuery() I would guess but I've not looked into it.
No file chosen
You have an empty file field. Please select or remove it.
Drop the files anywhere in this page to upload them as attachments.