belongsTo( self::class, ['not_null_column_with_foreign_key_constraint', 'not_null_column_with_foreign_key_constraint'], ['not_null_column_with_foreign_key_constraint', 'not_null_column_with_foreign_key_constraint'], ); } public function nonNullableMixedWithoutForeignKeyConstraint(): BelongsTo { return $this->belongsTo( self::class, ['not_null_column_with_foreign_key_constraint', 'not_null_column_with_no_foreign_key_constraint'], ['not_null_column_with_foreign_key_constraint', 'not_null_column_with_no_foreign_key_constraint'], ); } public function nullableMixedWithForeignKeyConstraint(): BelongsTo { return $this->belongsTo( self::class, ['nullable_column_with_no_foreign_key_constraint', 'not_null_column_with_foreign_key_constraint'], ['nullable_column_with_no_foreign_key_constraint', 'not_null_column_with_foreign_key_constraint'], ); } }