Hello, I have text field in an entity that I want to update with data. Until now I tried to use the ORM to set the field like:
$entity->set('fieldName', 'Test Account');
but the problem is that when I set the field value it becomes set for all records although I fetch the entity like:
$account = $entityManager->getRepository('Account')->get($accountId);
Is there a way to set the field with a condition based on the record id?
Or can I make an insert in database?
$entity->set('fieldName', 'Test Account');
but the problem is that when I set the field value it becomes set for all records although I fetch the entity like:
$account = $entityManager->getRepository('Account')->get($accountId);
Is there a way to set the field with a condition based on the record id?
Or can I make an insert in database?
Comment