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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:32:26+00:00 2026-06-07T07:32:26+00:00

I have a fresh baked (with bake console) project in which I have 2

  • 0

I have a fresh baked (with bake console) project in which I have 2 models behaving differently when I call model->find function.

UsersController

public function index() {
    $this->User->recursive = 0;
    $this->set('users', $this->paginate());
}

WordsController

public function index() {
    $this->Word->recursive = 0;
    $this->set('words', $this->paginate());
}

Query (DebugKit)

SELECT `Word`.`*` FROM `words` AS `Word` WHERE `Word`.`iniziale` = 'A' AND `Word`.`pubblicata` = '1' ORDER BY `Word`.`parola` ASC LIMIT 10
Affected 10 
Num rows 10

In both cases the query inspected has affected rows, but the WordsController doesn’t return any results if I debug the paginate() result, while the Users one gives correctly.

Word model has no relations, and I tried to change the model name to Term, obtaining the same result.

I tried also to downgrade CakePHP core to 2.1.4. Nothing.

Are there any possible causes to this problem? Is Word some kind of reserved keyword? How can this be debugged?

  • 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-06-07T07:32:28+00:00Added an answer on June 7, 2026 at 7:32 am

    I figured it out.

    I had in the words table (UTF8), some texts containing special characters like àòèéìù. Cake removed all the result containing these characters. I tried replacing “è” with “e” and magically the record was available in Cake!

    Hope my 5 hours of headache will help someone else!

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

Sidebar

Related Questions

I try to update a project from SVN (I have a fresh install of
I have these models: class Assignment(db.Model): title = db.StringPeoperty(required=True) ...other stuff... class TeamScore(db.Model): assignment
I have fresh installation of RabbitMQ on a linux/ubuntu server. Lets say the server
My scenario is I have two laptops with fresh installation of windows . Now
I have 2 sql scripts, one is for fresh install and the other one
I've just created a fresh ASP.NET MVC 4 solution and have added 3 Areas
I'm pretty fresh to database handling, but now completely without experience. However, I have
have written this little class, which generates a UUID every time an object of
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=
Have deployed numerous report parts which reference the same view however one of them

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.