cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

Add constraint to foreign key

Open nsossonko opened this issue 12 years ago • 1 comments

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.

nsossonko avatar Jul 10 '14 13:07 nsossonko

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

sergeyklay avatar Jul 04 '17 20:07 sergeyklay