public function save(VO $vo)
    {
        $store = $this->getPrimaryStore();
        $success = $store->save($vo);

        if (!$success) {
            throw new \RuntimeException("Couldn't store object in primary store", 500);
        }

        foreach ($this->stores as $storeName => $store) {
            if (!$this->isPrimaryStore($storeName)) {
                $store->save($vo);
            }
        }

        return $success;
    }
public function save(VO $vo)
    {
        $store = $this->getPrimaryStore();
        $success = $store->save($vo);

        if (!$success) {
            throw new \RuntimeException("Couldn't store object in primary store", 500);
        }

        foreach ($this->stores as $storeName => $store) {
            if (!$this->isPrimaryStore($storeName)) {
                $store->save($vo);
            }
        }

        return $success;
    }
public function save ( VO $ vo ) { $ store = $ this -> getPrimaryStore ( ) ; $ success = $ store -> save ( $ vo ) ; if ( ! $ success ) { throw new \ RuntimeException ( "Couldn't store object in primary store" , 500 ) ; } foreach ( $ this -> stores as $ storeName => $ store ) { if ( ! $ this -> isPrimaryStore ( $ storeName ) ) { $ store -> save ( $ vo ) ; } } return $ success ; }
Saves a VO
@param VO $vo
@return boolean
Saves a VO