Open Engveloper opened 1 year ago
Hi, sorry for the late reply. Seeing as how the trace is reporting use of the Laravel connection class, i'd say the query is being executed against an eloquent model instead of the SOQL connection model. However, i can't confirm that without seeing more of how your models are set up. Part of me wonders if the closure query could be the issue. i'm surprised it hasn't come up yet if thats the case.
Hi @roblesterjr04, thank you for reply. Both models (Organization and Affiliation) extends from the Lester\EloquentSalesForce\Model
class, and this is the relation definition inside the organization model:
public function affiliations(): SOQLHasMany
{
return $this->hasMany(Affiliation::class, 'npe5__Organization__c', 'Id');
}
Hello @roblesterjr04,
Thank you very much for your work in this package!.
I am reaching you because I am having an issue when I do a massive update in a query over a HasMany relationship.
When I run it, I am getting this exception
Debugging the query, in this case there isn't any record to update. Thanks in advance!.