Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 273641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:29:15+00:00 2026-05-12T00:29:15+00:00

Will I suffer consequences later if I add FKs with ON DELETE CASCADE and

  • 0

Will I suffer consequences later if I add FKs with ON DELETE CASCADE and such?

If not, what naming convention should I be using for FKs within MySQL for CakePHP?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T00:29:16+00:00Added an answer on May 12, 2026 at 12:29 am

    You can see the naming conventions laid out here.

    Cake handles FK/relationships in the code, based on your model associations and implied associations by naming conventions. You can add an extra layer of “enforcement” by defining FK relationships on the database level. If your database honours these, it’s harder to shoot yourself in the foot, but it’s not necessary. It adds the extra overhead of keeping the relationships in sync in Cake’s models and in the database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Short Version: What are the chances that a site's various sub-pages' page-ranks will suffer
Like any other hard disk, virtual hard discs (*.vhd) will suffer from fragmentation. So
i dunno, but will your machine suffer great slowdown if you use a very
If I call a virtual function 1000 times in a loop, will I suffer
c++ function, strtok() cplusplus.com Will this example suffer from buffer overrun if str is
as web developer using PHP/JS/CSS for years , i suffer from repeat myself over
Will this GLSL code create compile-time constants out of oneSixth and twoThirds? // GLSL
Will the following two SQL statements always produce the same result set? 1. SELECT
Will other services other than Facebook use Open Graph tags when scraping the page
Will limiting a query to one result record, improve performance in a large(ish) MySQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.