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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:43:58+00:00 2026-06-13T01:43:58+00:00

I modified my db and some fk relations. After rebuilding schema and rebuilding classes

  • 0

I modified my db and some fk relations. After rebuilding schema and rebuilding classes I get an error message while trying to use the class

Fatal error: Cannot redeclare BaseHrlibQualificationLevelQuery::filterByHrlibQualification() in C:\wamp\www\cbm_hr\trunk\cbm\plugins\cbmHrLibPlugin\lib\model\om\BaseHrlibQualificationLevelQuery.php on line 717

I checked the schema but there are no multiple columns in the same table.

What other things can cause multiple declarations of the function?

  • 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-13T01:44:00+00:00Added an answer on June 13, 2026 at 1:44 am

    I’ve just had a similar problem. Although your question doesn’t mention if you have multiple Foreign Keys to the same foreign table but I suspect that is the problem.

    I had:

    <foreign-key foreignTable="dish" phpName="Dish" refPhpName="Menu">
      <reference local="soup_id" foreign="id"/>
    </foreign-key>
    <foreign-key foreignTable="dish" phpName="Dish" refPhpName="Menu">
      <reference local="main_id" foreign="id"/>
    </foreign-key>
    

    and I’ve got this error message:

    PHP Fatal error: Cannot redeclare BaseMenuQuery::filterByDish()

    Then I’ve changed the phpName and refPhpName attributes (the later is needed because Propel will generate filterBySomething() function in the foreign table class so in my case there were multiple filterByMenu() function names):

    <foreign-key foreignTable="dish" phpName="soupDish" refPhpName="sMenu">
      <reference local="soup_id" foreign="id"/>
    </foreign-key>
    <foreign-key foreignTable="dish" phpName="mainDish" refPhpName="mMenu">
      <reference local="main_id" foreign="id"/>
    </foreign-key>
    

    So I’m guessing that you have multiple references to HrlibQualification table by more than one foreign key.

    I hope that helps.

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

Sidebar

Related Questions

I'm trying to get some information about Azure blob (last modified UTC date time).
Im trying to insert data into a table in MySQL. I found/modified some code
I checked in (modified )some of the files recently . When i'm trying to
I get this syntax on the internet and modified some parts. I would like
I recently modified some old UI code using Delphi's VCL to use ADO instead
I've some tables that shouln't be modified after some final steps in a process.
I am trying to use some C code in Unity3D pro. My basic approach
I create a working repository in HG. And I have modified some files. How
One of my database fields in a table is getting modified by some piece
For some special purpose, I modified /etc/X11/xinit/Xclients to start firefox instead of start Desktop

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.