final public function syncWithJunction($table, $masterValue, array $slaves, $masterColumn = self::PARAM_JUNCTION_MASTER_COLUMN, $slaveColumn = self::PARAM_JUNCTION_SLAVE_COLUMN)
    {
        // Remove previous ones
        $this->removeFromJunction($table, $masterValue, $masterColumn);

        // And insert new ones
        $this->insertIntoJunction($table, $masterValue, $slaves, $masterColumn, $slaveColumn);

        return true;
    }
final public function syncWithJunction($table, $masterValue, array $slaves, $masterColumn = self::PARAM_JUNCTION_MASTER_COLUMN, $slaveColumn = self::PARAM_JUNCTION_SLAVE_COLUMN)
    {
        // Remove previous ones
        $this->removeFromJunction($table, $masterValue, $masterColumn);

        // And insert new ones
        $this->insertIntoJunction($table, $masterValue, $slaves, $masterColumn, $slaveColumn);

        return true;
    }
final public function syncWithJunction ( $ table , $ masterValue , array $ slaves , $ masterColumn = self :: PARAM_JUNCTION_MASTER_COLUMN , $ slaveColumn = self :: PARAM_JUNCTION_SLAVE_COLUMN ) { // Remove previous ones $ this -> removeFromJunction ( $ table , $ masterValue , $ masterColumn ) ; // And insert new ones $ this -> insertIntoJunction ( $ table , $ masterValue , $ slaves , $ masterColumn , $ slaveColumn ) ; return true ; }
Synchronizes a junction table

@param string $table Junction table name
@param string $masterColumn Master column name
@param string $masterValue Master value (shared for slaves)
@param string $slaveColumn Slave column name
@param array $slaves A collection of slave values
@return boolean
Synchronizes a junction table