Skip to content

Add constraint to foreign key #2604

Closed
Closed
@nsossonko

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions