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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:50:09+00:00 2026-06-01T18:50:09+00:00

I’m migrating code from Symfony1.0 to Symfony 1.4. Created a admin module called: mymodel

  • 0

I’m migrating code from Symfony1.0 to Symfony 1.4.
Created a admin module called: mymodel using Propel.

The database of that model is like this:

table: mymodel_table.
  column: fkLabelId
  column: fkRightsOwnerId
NOTE: both are foreing keys.

They are connected this way -again in the physical DB-:

  fkLabelId        -------> REFER `DB/label`(`id`);

  fkRightsOwnerId  -------> REFER `DB/ownersright`(`id`);

Now, I created the admin-module in my project –cms in the following code-:

php symfony propel:generate-admin cms --module=myModel MyModelTable

In my page I can see the info of the table mymodel_table, this is: both id. But I would like to see the info referenced in the other two tables.

This is the config.yml OF THE SYMFONY 1.0 VERSION:

generator:
class:              sfPropelAdminGenerator
param:
  model_class:      MyModel
  theme:            default
  fields:
    fk_label_id: {params: disabled=false}
    fk_rightsowner_id: {params: disabled=false}
  list:
    filters:              [fklabelid, _label_filter, fkrightsownerid, _rightsowner_filter]
    peer_method:          doSelectJoinAll
    display:              [=_label_list, =_rightsowner_list]
    actions:
    actions:
      _create:        ~
    object_actions:
      _edit:          ~
      _delete:        ~
  edit:
    display: [=_label_edit, =_rightsowner_edit]
    actions:
      _list:          ~
      _save_and_list: ~
      _save:          ~
      _delete:        ~

This is the config.yml OF THE SYMFONY 1.4 VERSION:

generator:
  class: sfPropelGenerator
  param:
    model_class:           MyModel
    theme:                 admin15
    non_verbose_templates: true
    with_show:             false
    singular:              MyModel
    plural:                MyModel
    route_prefix:          My_model
    with_propel_route:     1
    actions_base_class:    sfActions

config:
  actions: ~
  fields:
    fk_label_id: {params: disabled=false}
    fk_rightsowner_id: {params: disabled=false}
  list:
    filters:              [fklabelid, _label_filter, fkrightsownerid, _rightsowner_filter] 
  //  peer_method:          doSelectJoinAll                         ("commented")
  //  display:              [=_label_list, =_rightsowner_list]      ("commented")
  filter:  ~
  form:    ~
  edit:    ~
  new:     ~

In mypage.com/dev.php/mymodel I get:

500 | Internal Server Error | InvalidArgumentException
Your generator configuration contains some errors for the "list" context. The following configuration cannot be parsed: array( 'filters' => array( 0 => 'fklabelid', 1 => '_label_filter', 2 => 'fkrightsownerid', 3 => '_rightsowner_filter', ),).

In the Symfony page did not find good examples this this cases!. Tried many permutations of the 1.0 version. Changing things, adding the foreign command in the config.yml.

I would appreciate any help.

EDIT:

As I was suggested I’m doing the partials. I created a _Label_list.php. Redirect the info from the foreign key to the destiny table. In the file, I’m doing something like that:

 $rights = RightsOwnerQuery::create()->findPk($MyModel->getFkRightsOwnerId());

 //Print the Info
 echo $rights->getPrice() . ' ('. $rights->getId() . ')';
  • 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-01T18:50:10+00:00Added an answer on June 1, 2026 at 6:50 pm

    The old list > filters in symfony 1.0 have been moved to a dedicated entry filter in symfony 1.4.

    You now have to use filter at the same level of list.

    config:
      actions: ~
      fields:
        fk_label_id: {params: disabled=false}
        fk_rightsowner_id: {params: disabled=false}
      list:            
      //  peer_method:          doSelectJoinAll                         ("commented")
      //  display:              [=_label_list, =_rightsowner_list]      ("commented")
      filter:
        display: [fklabelid, _label_filter, fkrightsownerid, _rightsowner_filter]
      form:    ~
      edit:    ~
      new:     ~
    

    By the way, be careful, field started with “_” are partial. So don’t forget to create partial (I guess they are already exists in the symfony 1.0).

    Edit:
    About partial, you have to create them in the templates directory of the admin module:

    modules
      |- rightsownerinlabel
        |- actions
        |- config
          |- generator.yml
        |- lib
        |- templates
          |- _label_filter.php
          |- _rightsowner_filter.php
    

    I don’t often fo partial for filters, but dig into the generated code in cache folder to see how you can retrieve the FormFilter object and do want ever you want with

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.