public function oneShiftsToMany($model, $relatedKey = 'scope_id', $shifter = 'scope', $thisKey = null)
	{
		// Default the keys if not set
		$thisKey = $thisKey ?: $this->getPrimaryKey();

		return new OneShiftsToMany($this, $this->resolve($model), $thisKey, $relatedKey, $shifter);
	}
public function oneShiftsToMany($model, $relatedKey = 'scope_id', $shifter = 'scope', $thisKey = null)
	{
		// Default the keys if not set
		$thisKey = $thisKey ?: $this->getPrimaryKey();

		return new OneShiftsToMany($this, $this->resolve($model), $thisKey, $relatedKey, $shifter);
	}
public function oneShiftsToMany ( $ model , $ relatedKey = 'scope_id' , $ shifter = 'scope' , $ thisKey = null ) { // Default the keys if not set $ thisKey = $ thisKey ? : $ this -> getPrimaryKey ( ) ; return new OneShiftsToMany ( $ this , $ this -> resolve ( $ model ) , $ thisKey , $ relatedKey , $ shifter ) ; }
Retrieves a one shifts to many model relationship

This is very similar to a one to many relationship, except that we also need to
constrain by a scope type.  Additionally, the related key is actually most likely
static (scope_id), rather than dynamic based on the model name.

@param   string       $model       The name of the model to relate to the current one
@param   string|null  $relatedKey  The foreign key used to associate the many back to the model
@param   string|null  $shifter     The many side field used to differentiate/shift models
@param   string|null  $thisKey     The local key used to associate the many back to the model
@return  \Hubzero\Database\Relationship\OneShiftsToMany
@since   2.0.0
Retrieves a one shifts to many model relationship