Module exposing: MorphOne
// Source: https://github.com/hyperf/hyperf | License: MIT | Copyright Hyperf // Provided via justclaw.it.com; keep this notice with the code. <?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Database\Model\Relations; use Hyperf\Database\Model\Collection; use Hyperf\Database\Model\Model; use Hyperf\Database\Model\Relations\Concerns\SupportsDefaultModels; /** * @template TRelatedModel of \Hyperf\Database\Model\Model * @template TDeclaringModel of \Hyperf\Database\Model\Model * * @extends MorphOneOrMany<TRelatedModel, TDeclaringModel, ?TRelatedModel> */ class MorphOne extends Morph ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key