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

  • Home
  • SEARCH
  • 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 6909647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:42:57+00:00 2026-05-27T08:42:57+00:00

I have attached the translate behavior at a model and inside the controller in

  • 0

I have attached the translate behavior at a model and inside the controller in order to limit the fields queried I try to set the fields using:

$this->paginate['fields'] = 'Product.id, Product.category_id,...';

However, when trying to add a translatable field by adding it at

$this->paginate['fields'] = 'I18n__title.content, Product.id, Product.category_id,...';

I get

SQL Error: 1054: Unknown column 'I18n__title.content' in 'field list'
  • 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-27T08:42:57+00:00Added an answer on May 27, 2026 at 8:42 am

    Found the answer.
    I should add the fields as an array instead of string

    It should work if you supply the fields as an array. String fields are not parsed, as SQL is complicated.

    http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2348-translate-behavior-and-this-paginatefields#ticket-2348-3

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

Sidebar

Related Questions

I have attached an event to a text box using addEventListener . It works
I have a div which I have attached an onclick event to. in this
In Excel I have attached a picture to a cell using the following Sub
Using MS Visual Studio, I have attached a spin control to an edit control
I have written a attached property which stores amongst others a help text. This
I have attached certain actions to the existence of a URL hash in order
I have attached an example of what I am trying to achieve using html/css
I have attached a navigation controller to my storyboard. Initially, I had the nafigation
I have made a table using GtkTable and in that table I have attached
I have a model with TranslateBehavior attached to it and I wonder if there

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.