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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:21:30+00:00 2026-05-24T10:21:30+00:00

Hi I am using a PHP Symfony project and am trying to use the

  • 0

Hi I am using a PHP Symfony project and am trying to use the generated model peer class to make a query.

The model has generated the method “doSelectJoinMeetingItems” which is supposed to join my Meeting Actions Table to my Meeting Items table (see a quote of the generated code below).

However, when using this method I get the following error: Warning: Missing argument 1 for sfComponent::__construct(), – see in full below.

Does anyone know why this is happening? All I am doing is using Symfonys own generated methods to try and get data through my ORM to me!

Thanks for your time,

My code:

Inside MeetingMeetingsPeer

return self::doSelectJoinMeetingItems(new Criteria());

The auto generated baseMeetingActionsPeer

public static function doSelectJoinMeetingItems(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
    $criteria = clone $criteria;

    // Set the correct dbName if it has not been overridden
    if ($criteria->getDbName() == Propel::getDefaultDB()) {
        $criteria->setDbName(self::DATABASE_NAME);
    }

    MeetingActionsPeer::addSelectColumns($criteria);
    $startcol = (MeetingActionsPeer::NUM_COLUMNS - MeetingActionsPeer::NUM_LAZY_LOAD_COLUMNS);
    MeetingItemsPeer::addSelectColumns($criteria);

    $criteria->addJoin(MeetingActionsPeer::ITEM_ID, MeetingItemsPeer::ID, $join_behavior);

    // symfony_behaviors behavior
    foreach (sfMixer::getCallables(self::getMixerPreSelectHook(__FUNCTION__)) as $sf_hook)
    {
      call_user_func($sf_hook, 'BaseMeetingActionsPeer', $criteria, $con);
    }

    $stmt = BasePeer::doSelect($criteria, $con);
    $results = array();

    while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
        $key1 = MeetingActionsPeer::getPrimaryKeyHashFromRow($row, 0);
        if (null !== ($obj1 = MeetingActionsPeer::getInstanceFromPool($key1))) {
            // We no longer rehydrate the object, since this can cause data loss.
            // See http://propel.phpdb.org/trac/ticket/509
            // $obj1->hydrate($row, 0, true); // rehydrate
        } else {

            $cls = MeetingActionsPeer::getOMClass(false);

            $obj1 = new $cls();
            $obj1->hydrate($row);
            MeetingActionsPeer::addInstanceToPool($obj1, $key1);
        } // if $obj1 already loaded

        $key2 = MeetingItemsPeer::getPrimaryKeyHashFromRow($row, $startcol);
        if ($key2 !== null) {
            $obj2 = MeetingItemsPeer::getInstanceFromPool($key2);
            if (!$obj2) {

                $cls = MeetingItemsPeer::getOMClass(false);

                $obj2 = new $cls();
                $obj2->hydrate($row, $startcol);
                MeetingItemsPeer::addInstanceToPool($obj2, $key2);
            } // if obj2 already loaded

            // Add the $obj1 (MeetingActions) to $obj2 (MeetingItems)
            $obj2->addMeetingActions($obj1);

        } // if joined row was not null

        $results[] = $obj1;
    }
    $stmt->closeCursor();
    return $results;
}

The Error in Full

Warning: Missing argument 1 for sfComponent::__construct(), called in /var/www/html/dev/meeting/lib/model/om/BaseMeetingActionsPeer.php on line 584 and defined in /var/www/html/dev/meeting/lib/vendor/symfony/lib/action/sfComponent.class.php on line 36

Warning: Missing argument 2 for sfComponent::__construct(), called in /var/www/html/dev/meeting/lib/model/om/BaseMeetingActionsPeer.php on line 584 and defined in /var/www/html/dev/meeting/lib/vendor/symfony/lib/action/sfComponent.class.php on line 36

Warning: Missing argument 3 for sfComponent::__construct(), called in /var/www/html/dev/meeting/lib/model/om/BaseMeetingActionsPeer.php on line 584 and defined in /var/www/html/dev/meeting/lib/vendor/symfony/lib/action/sfComponent.class.php on line 36

Notice: Undefined variable: context in /var/www/html/dev/meeting/lib/vendor/symfony/lib/action/sfComponent.class.php on line 38

Fatal error: Call to a member function getEventDispatcher() on a non-object in /var/www/html/dev/meeting/lib/vendor/symfony/lib/action/sfComponent.class.php on line 55

The lines 582 to 586 are as follows:

582    $cls = MeetingActionsPeer::getOMClass(false);
583    
584    $obj1 = new $cls();
585    $obj1->hydrate($row);
586    MeetingActionsPeer::addInstanceToPool($obj1, $key1);

Line 36 from sfComponnent.class.php

36    public function __construct($context, $moduleName, $actionName)
37      {
38        $this->initialize($context, $moduleName, $actionName);
39      }
  • 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-24T10:21:31+00:00Added an answer on May 24, 2026 at 10:21 am

    I have located the problem, in Symfony 1.4 you cannot have a class that ends in actions for example UserActions or GroupActions (wish this was properly documented somewhere).

    I wish this was better documented and the error was more useful!

    a classname (in the schema.yml) which ends with ‘%Actions’ for example
    UserActions? (symfony 1.4.10). An error was thrown when i added an
    extra field (with validation) in the form of the object related to
    this ‘*Actions’.

    wrapped: Warning: Missing argument 2 for sfComponent::__construct(), called in 
    /Users/Shared/Library/symfony-1.4.10/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Table.php 
    on line 301 and defined in /Users/Shared/Library/symfony-1.4.10/lib/action/sfComponent.class.php on line 36 
    Warning: Missing argument 3 for sfComponent::__construct(), called in 
    /Users/Shared/Library/symfony-1.4.10/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Table.php 
    on line 301 and defined in /Users/Shared/Library/symfony-1.4.10/lib/action/sfComponent.class.php on line 36]
    

    See post at http://trac.symfony-project.org/wiki/ReservedWords

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

Sidebar

Related Questions

I am trying to send email using the following method in my action class:
Using PHP and MySQL, I have a forum system I'm trying to build. What
I am using PHP with Apache on Linux, with Sendmail. I use the PHP
I am using Propel as my DAL for my Symfony project. I can't seem
I'm building a site like SO using PHP as a personal project. I started
I am using Symfony 1.4 as PHP framework, with Propel as ORM. I downloaded
Using PHP, what's the fastest way to convert a string like this: 123 to
Been using PHP/MySQL for a little while now, and I'm wondering if there are
In using PHP's DOM classes (DOMNode, DOMEElement, etc) I have noticed that they possess
I've been using PHP & MySQL for ages and am about to start using

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.