Hello,
how can I set values of fields in entity using PHP? I don't know what .php file should I write functions to. Entity.php in /Entities, or /Repositories?
And also, is this correct ? Thank you.
public function setValue(Entity $entity) {
$name->$entity->get('name');
$entity->set('editor', $name);
}
how can I set values of fields in entity using PHP? I don't know what .php file should I write functions to. Entity.php in /Entities, or /Repositories?
And also, is this correct ? Thank you.
public function setValue(Entity $entity) {
$name->$entity->get('name');
$entity->set('editor', $name);
}
Comment