Hi,

I try to use "sfPropelCustomJoinHelper" (you can see it hier
http://trac.symfony-project.org/wiki/ApplyingCustomJoinsUsingHelper)
to solve this problem:

select
  a.a1,
  a.a2,
  b.b1.
  b.b2
from
  artikel a
left join
  bestellung b
on
  b.id = a.id

from such a select, I need in my templete a.a1 und b.b1

Whith

$this->bestellung_list = BestellungPeer::doSelect($c);

I get only attr. of Table Bestellung (e.g. b.b1). How to get a.a1?



Hier is Code of my action class:

  public function executeIndex(sfWebRequest $request)
  {

        $c      = new Criteria();
        $this->bestellung_list = BestellungPeer::doSelect($c);

        // Helper class
        $c = new Criteria();
        $c->addJoin(ArtikelPeer::ID, BestellungPeer::ARTIKEL_ID);

        $joinHelper = new sfPropelCustomJoinHelper('Artikel');

        $joinHelper->addSelectTables('Artikel', 'Bestellung');

        $this->articles = $joinHelper->doSelect($c);
         // ...

  }



When I try to run it, so I get this error:


Warning: call_user_func_array() [function.call-user-func-array]: First
argument is expected to be a valid callback, 'ArtikelPeer::doSelectRS'
was given in C:\dev\sf_shopnew\lib\symfony\helper
\sfPropelCustomJoinHelper.php on line 111

Fatal error: Call to a member function next() on a non-object in C:\dev
\sf_shopnew\lib\symfony\helper\sfPropelCustomJoinHelper.php on line 78


Thanks in advance for any help.

Have a nice weekend,

Gezim


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to