$entity->set didn't save the content

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • smartinsar
    replied
    SOLVED:
    I've added save to the end of the service: $this->getEntityManager()->saveEntity($entity);

    Leave a comment:


  • smartinsar
    started a topic $entity->set didn't save the content

    $entity->set didn't save the content

    Hello,
    I'm creating custom service for SalesOrder entity and trying to set custom entity (enum type).
    During the code running the entity value changed, but it's not saved in database I guess.

    Code:
    echo $entity->get('touchstoreStatus');  
    
    $entity->set('touchstoreStatus', 'TSS'); 
    
    echo $entity->get('touchstoreStatus');
    During the service code running echo log shows right values:
    >TSE
    >TSS

    the full workflow run without any issue.

    Can you help me with it?

    I use the same entity set in my custom hook and it's work without any problem.





Working...