var newItem = getItemService().new(properties=item.getPropertyMemento(),exclude=“lines”);
the above copies an entity into a new one. “lines” relationship is a one-to-many. dumping “newItem” shows that “lines” does get populated into the new entity.
is this by design?
nevermind. new() doesnt have “exclude”. will have to use populate.
It looks like it does to me. New just calls populate and passes exclude along.
Oops, looks like that was a later addition. The version of that file in the 3.5.3 tag in GitHub doesn’t show it.
Yep, that was added with this commit
Looks like it’s time for you to upgrade!!
Thanks!
~Brad
ColdBox Platform Evangelist Ortus Solutions, Corp
E-mail: brad@coldbox.org ColdBox Platform: http://www.coldbox.org Blog: http://www.codersrevolution.com