Propel methods not attaching to peers

1 view
Skip to first unread message

rfallis

unread,
Dec 7, 2007, 5:47:17 PM12/7/07
to phocoa users, cmi...@scratchspace.com, rfa...@ecommercialpro.com
Hi Alan and Everyone,

Glad to meet you all.

I have

class module_info_display
{
function paramtersDidLoad($page, $params)
{
$rows=NamePeer::doSelectJoinName(new Criteria());
$page->sharedOutlet('Name')->setContent($rows);
}
}

and I get

Fatal error: Call to undefined method NamePeer::doselectjoinname()in /
home/rfallis/www/project/project/modules/info/info.php on line 173

I'm new to this and perhaps I'm missing one or more obvious things.
After rebuilding with propel-gen from a manually recomposed schema, I
get a complaint from propel re NamePeer, but when I try this with
other peers I get the same results. For that matter, I got it before
rebuilding.

I'm connecting to mysql through propel v1.3 and a simple doSelect()
works fine.

Any thoughts?

Rich

Alan Pinstein

unread,
Dec 7, 2007, 5:55:24 PM12/7/07
to phocoa...@googlegroups.com
Rich-

This is more of a propel question, but I'll see if I can help you out.

My best guess is that you didn't define the "Name" foreign key in
your schema.xml, and thus there is probably not a method named
"doSelectJoinName".

Check in classes/<project>/om/BaseNamePeer.php and see if the method
is actually there to confirm.

If not, check your schema file and make sure that the "Name"
relationship is set up. "Name" is a pretty generic name for a table,
so it's possible that there is some other conflict going on...

Alan

Reply all
Reply to author
Forward
0 new messages