src/mako/database/midgard/ORM.php
protected function belongsToPolymorphic(string $model, string $polymorphicType): BelongsToPolymorphic
	{
		$related = new $model;

		return new BelongsToPolymorphic($related->getConnection(), $this, $related, $polymorphicType);
	}
protected function belongsToPolymorphic(string $model, string $polymorphicType): BelongsToPolymorphic
	{
		$related = new $model;

		return new BelongsToPolymorphic($related->getConnection(), $this, $related, $polymorphicType);
	}
protected function belongsToPolymorphic ( string $ model , string $ polymorphicType ) : BelongsToPolymorphic { $ related = new $ model ; return new BelongsToPolymorphic ( $ related -> getConnection ( ) , $ this , $ related , $ polymorphicType ) ; }
Returns a BelongsToPolymorphic relation.

@param  string                                                $model           Related model
@param  string                                                $polymorphicType Polymorphic type
@return \mako\database\midgard\relations\BelongsToPolymorphic
Returns a BelongsToPolymorphic relation .