Craft\Neo_BlockStructureRecord::defineRelations PHP Method

defineRelations() public method

public defineRelations ( )
    public function defineRelations()
    {
        return ['structure' => [static::BELONGS_TO, 'StructureRecord', 'required' => true, 'onDelete' => static::CASCADE], 'owner' => [static::BELONGS_TO, 'ElementRecord', 'required' => true, 'onDelete' => static::CASCADE], 'ownerLocale' => [static::BELONGS_TO, 'LocaleRecord', 'ownerLocale', 'onDelete' => static::CASCADE, 'onUpdate' => static::CASCADE], 'field' => [static::BELONGS_TO, 'FieldRecord', 'required' => true, 'onDelete' => static::CASCADE]];
    }