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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:50:13+00:00 2026-05-23T21:50:13+00:00

Hi I have two Modules on each modules i have models with table class,

  • 0

Hi I have two Modules on each modules i have models with table class, I want to referenceMap two table class one in each module.

This is what I have:

This one is in Invoice Module.

class Invoice_Resource_InvoiceByProgress extends SA_Model_Resource_Db_Table_Abstract 
      implements   Invoice_Resource_InvoiceByProgress_Interface 
{
  protected $_name = 'invoice_by_progress';
  protected $_primary = array('invoice_by_progressId');
  protected $_rowClass = 'Invoice_Resource_InvoiceByProgress_Item';

  protected $_referenceMap = array(

    'Project2client' => array(
        'columns'       => 'project2clientId',
        'refTableClass' => 'Siteanalysis_Resource_Project2client',
        'refColumns'    => 'project2clientId',
        'onDelete'      => self::CASCADE
    ),    
  );

And this one is in Siteanalysis Module.

  class Siteanalysis_Resource_Project2client extends SA_Model_Resource_Db_Table_Abstract 
         implements Siteanalysis_Resource_Project2client_Interface 
  {
      protected $_name = 'project2client';
      protected $_primary = 'project2clientId';
      protected $_rowClass = 'Siteanalysis_Resource_Project2client_Item';

      protected $_dependentTables = array('Invoice_Resource_InvoiceByProgress');

      protected $_referenceMap = array(

      'Project' => array(
        'columns'       => 'projectId',
        'refTableClass' => 'Siteanalysis_Resource_Project',
        'refColumns'    => 'projectId',
        'onDelete'      => self::CASCADE
       ),);

My question is how can i make $_referenceMap to work?

Thanks in advance.

  • 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-23T21:50:14+00:00Added an answer on May 23, 2026 at 9:50 pm

    The problem was that

    protected $_dependentTables = array(‘Invoice_Resource_InvoiceByProgress’);

    has to be

    protected $_dependentTables = array(‘Invoice_Resource_Invoicebyprogress’);

    instead of the class name the file name.

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

Sidebar

Related Questions

Ok I have two modules, each containing a class, the problem is their classes
If I have two modules, each has implemented its preprocess_node hook. Then which one
I have two different modules that need access to a single file (One will
I have these two modules : package G1; sub new { my $class =
I have two modules, a.py and b.py. I want the globals from a.py to
I am working on a transliteration tool. I have two modules lexer and translator.
In my code base I find that two modules have structures with the same
I have written a Python module, and I have two versions: a pure Python
I have two applications written in Java that communicate with each other using XML
I have two arrays of System.Data.DataRow objects which I want to compare. The rows

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.