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 7399013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:57:35+00:00 2026-05-29T03:57:35+00:00

I am attempting to port a PHP website into cakePHP which is proving somewhat

  • 0

I am attempting to port a PHP website into cakePHP which is proving somewhat difficult due to a ridiculous amount of incorrectly named columns in the database tables etc. etc.

Anywho, I’ve gotten most of the way there after renaming many things,and I can bake the entire site without much issue. I can then browse the site normally (the baked version) and everything seems to work on the face of things however there is a table called ‘sets’ and it seems to cause a problem.

Is there some special reservation for this table name? The issue comes when attempting to utilise the sets controller, ie: site/sets/index or site/sets/add will just return an error saying that it is not defined in the controller, it is.
If I then proceed to access any of the other controllers I am met with this error:

Fatal error: Call to undefined method Set::numeric() in /pathtocake/lib/Cake/Model/Datasource/DboSource.php on line 2215

I then usually have to restart mamp to continue!

Can anyone shed any light on this?
Thanks

  • 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-29T03:57:44+00:00Added an answer on May 29, 2026 at 3:57 am

    set/sets is a protected name for a table and a class. See http://groups.google.com/group/cake-php/msg/8d149a246d46d3cf?pli=1 and http://bakery.cakephp.org/articles/sajt/2007/02/25/cake-conventions

    Rename your table to something like mysets.

    You can test your schema easily on http://cakeapp.com. This online tools helps you with naming tables correctly and offers cake valid names when a protected name was found.

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

Sidebar

Related Questions

I'm currently attempting to port a Java program over to iOs which utilzes BufferedImage's
I am attempting to port one of my hobby project to linux. Preferrably to
I'm attempting to port over an Internet Explorer plugin to Firefox, but I'm not
Attempting to insert an escape character into a table results in a warning. For
Attempting to use XStream's JavaBeanConverter and running into an issue. Most likely I'm missng
I'm attempting to port an application that plays chiptunes (NSF, SPC, etc) music files
I have started playing with Maven2 and I'm attempting to port one of my
I am attempting to test the monger mongodb driver for clojure (which is essentially
I have been attempting to compile/run a sample WCF application from Juval Lowy's website
We are attempting to port a legacy application from an old monolithic RTOS to

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.