public function manyShiftsToMany($model, $associativeTable = null, $thisKey = 'scope_id', $shifter = 'scope', $relatedKey = null)
	{
		$related = $this->resolve($model);

		// Default the keys and table if not set
		$associativeTable = $associativeTable ?: '#__' . strtolower($related->getModelName()) . '_object';
		$relatedKey       = $relatedKey       ?: strtolower($related->getModelName()) . '_id';

		return new ManyShiftsToMany($this, $related, $associativeTable, $thisKey, $relatedKey, $shifter);
	}
public function manyShiftsToMany($model, $associativeTable = null, $thisKey = 'scope_id', $shifter = 'scope', $relatedKey = null)
	{
		$related = $this->resolve($model);

		// Default the keys and table if not set
		$associativeTable = $associativeTable ?: '#__' . strtolower($related->getModelName()) . '_object';
		$relatedKey       = $relatedKey       ?: strtolower($related->getModelName()) . '_id';

		return new ManyShiftsToMany($this, $related, $associativeTable, $thisKey, $relatedKey, $shifter);
	}
public function manyShiftsToMany ( $ model , $ associativeTable = null , $ thisKey = 'scope_id' , $ shifter = 'scope' , $ relatedKey = null ) { $ related = $ this -> resolve ( $ model ) ; // Default the keys and table if not set $ associativeTable = $ associativeTable ? : '#__' . strtolower ( $ related -> getModelName ( ) ) . '_object' ; $ relatedKey = $ relatedKey ? : strtolower ( $ related -> getModelName ( ) ) . '_id' ; return new ManyShiftsToMany ( $ this , $ related , $ associativeTable , $ thisKey , $ relatedKey , $ shifter ) ; }
Retrieves a many shifts to many model relationship

@param   string       $model             The name of the model to relate to the current one
@param   string       $associativeTable  The name of the intermediate table used to associate model->related
@param   string|null  $thisKey           The local key used on the associative table
@param   string       $shifter           The many side field used to differentiate/shift models
@param   string       $relatedKey        The related key used on the associative table
@return  \Hubzero\Database\Relationship\ManyShiftsToMany
@since   2.0.0
Retrieves a many shifts to many model relationship