HasOneOrManyPolymorphicTrait
trait HasOneOrManyPolymorphicTrait
Has one or has many polymorphic relation.
Properties
protected string | $polymorphicType | Polymorphic type. |
Methods
__construct(Connection $connection, ORM $parent, ORM $related, string $polymorphicType)
Constructor.
Details
at line 35
__construct(Connection $connection, ORM $parent, ORM $related, string $polymorphicType)
Constructor.
at line 50
ORM
create(mixed $related)
Creates a related record.