FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Added methods `cascadeOnDelete()`, `restrictOnDelete()`, `noActionOnDelete()`, `restrictOnUpdate()`, `nullOnUpdate()`, `noActionOnUpdate()` for `ForeignKeyDefinition`. by binaryfire · Pull Request #7693 · hyperf/hyperf · GitHub

/ hyperf Public

Added methods cascadeOnDelete(), restrictOnDelete(), noActionOnDelete(), restrictOnUpdate(), nullOnUpdate(), noActionOnUpdate() for ForeignKeyDefinition. - #7693

Merged
limingxinleo merged 3 commits into
hyperf:masterfrom
binaryfire:feature/foreign-key-definition-convenience-methods
Jan 8, 2026
Merged

Conversation

Copy link
Copy Markdown
Contributor

Add the following methods that exist in Laravel but were missing in Hyperf:

  • cascadeOnDelete()
  • restrictOnDelete()
  • noActionOnDelete()
  • restrictOnUpdate()
  • nullOnUpdate()
  • noActionOnUpdate()

Includes tests for MySQL, PostgreSQL, and SQLite grammars.

binaryfire and others added 3 commits January 6, 2026 05:50
Add the following methods that exist in Laravel but were missing in Hyperf:
- cascadeOnDelete()
- restrictOnDelete()
- noActionOnDelete()
- restrictOnUpdate()
- nullOnUpdate()
- noActionOnUpdate()

Includes tests for MySQL, PostgreSQL, and SQLite grammars.
limingxinleo changed the title feat: Add missing ForeignKeyDefinition convenience methods from Laravel Added methods cascadeOnDelete(), restrictOnDelete(), noActionOnDelete(), restrictOnUpdate(), nullOnUpdate(), noActionOnUpdate() for ForeignKeyDefinition. Jan 8, 2026
limingxinleo merged commit b3b686e into hyperf:master Jan 8, 2026
56 of 60 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL