Hi,
i need to clone a entity (i know is bad) .. but i just need clone all attribute :
sample
entityA {
name => "blabla",
assignedUser => "bb",
teams => ['teamA' , 'teamB'],
accountId => '123'
}
so i need :
newEntity = clone entityA
newEntity-set([
'name' => 'newName'
'accountId' => '222'
]).
saveEntity->(newEntity).
it's possible ? i change only 2 attribute.
Resume : i will not write by hand all attribute.
i need to clone a entity (i know is bad) .. but i just need clone all attribute :
sample
entityA {
name => "blabla",
assignedUser => "bb",
teams => ['teamA' , 'teamB'],
accountId => '123'
}
so i need :
newEntity = clone entityA
newEntity-set([
'name' => 'newName'
'accountId' => '222'
]).
saveEntity->(newEntity).
it's possible ? i change only 2 attribute.
Resume : i will not write by hand all attribute.
Comment