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

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

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

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