public function save(DomainObjectInterface &$domainObject): void
    {
        if ($domainObject->getId() === 0) {
            $this->concreteInsert($domainObject);
        }

        $this->concreteUpdate($domainObject);
    }
public function save(DomainObjectInterface &$domainObject): void
    {
        if ($domainObject->getId() === 0) {
            $this->concreteInsert($domainObject);
        }

        $this->concreteUpdate($domainObject);
    }
public function save ( DomainObjectInterface & $ domainObject ) : void { if ( $ domainObject -> getId ( ) === 0 ) { $ this -> concreteInsert ( $ domainObject ) ; } $ this -> concreteUpdate ( $ domainObject ) ; }
Store the DomainObject in persistent storage. Either insert
or update the store as required.

@param DomainObjectInterface $domainObject

@return void
Store the DomainObject in persistent storage . Either insert or update the store as required .