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

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

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

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