Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constraint to foreign key #2604

Closed
nsossonko opened this issue Jul 10, 2014 · 1 comment
Closed

Add constraint to foreign key #2604

nsossonko opened this issue Jul 10, 2014 · 1 comment

Comments

@nsossonko
Copy link
Contributor

It's not possible to add constraints (ON UPDATE CASCADE, etc) to foreign keys with Phalcon\Db\AdapterInterface::addForeignKey. It accepts a Phalcon\Db\ReferenceInterface which does not have an "action" or similar parameter for constraints. This would be very useful.

Thanks.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@sergeyklay
Copy link
Contributor

Fixed in the 3.2.x branch. Feel free to open new issue if the problem appears again. Thank you for contributing.

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

No branches or pull requests

2 participants