I’m using Concrete CMS v8.5.13 in my dev environment here, and I THINK my problem is in how I’m trying to set the Author ID, but if that is the case I’m not sure how I should do it.
I’m doing
$entry = Express::buildEntry(‘express_object_handle_goes_here’)
->setAuthor($userIDVariablePreviouslySet)
->setAnotherAttribute($variableWhatever)
->save();
I’m pretty sure this step in my code (because the debug output is unclear about the problematic line) is producing this error:
“Entity of type Concrete\Core\Entity\Attribute\Value\ExpressValue is missing an assigned ID for field ‘attribute_key’. The identifier generation strategy for this entity requires the ID field to be populated before EntityManager#persist() is called. If you want automatically generated identifiers instead you need to adjust the metadata mapping accordingly.”
So… am I barking up the right tree? And if so, what should I be doing instead?
Thanks!