public function setPriceModification($value)
    {
        if ($this->exists()) {
            $join = $this->manyMany('Reservations');
            $table = end($join);
            $where = $this->getSourceQueryParam('Foreign.Filter');
            $where["`{$this->baseTable()}ID`"] = $this->ID;
            SQLUpdate::create(
                "`{$table}`",
                array('`PriceModification`' => $value),
                $where
            )->execute();
        }
    }
public function setPriceModification($value)
    {
        if ($this->exists()) {
            $join = $this->manyMany('Reservations');
            $table = end($join);
            $where = $this->getSourceQueryParam('Foreign.Filter');
            $where["`{$this->baseTable()}ID`"] = $this->ID;
            SQLUpdate::create(
                "`{$table}`",
                array('`PriceModification`' => $value),
                $where
            )->execute();
        }
    }
public function setPriceModification ( $ value ) { if ( $ this -> exists ( ) ) { $ join = $ this -> manyMany ( 'Reservations' ) ; $ table = end ( $ join ) ; $ where = $ this -> getSourceQueryParam ( 'Foreign.Filter' ) ; $ where [ "`{$this->baseTable()}ID`" ] = $ this -> ID ; SQLUpdate :: create ( "`{$table}`" , array ( '`PriceModification`' => $ value ) , $ where ) -> execute ( ) ; } }
Set the price modification on the join

@param $value
Set the price modification on the join