Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Using a join in query with no relation in schema
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Chtipepere  
View profile   Translate to Translated (View Original)
 More options 7 July, 23:33
From: Chtipepere <chtipep...@gmail.com>
Date: Tue, 7 Jul 2009 15:33:50 -0700 (PDT)
Local: Tues 7 July 2009 23:33
Subject: Using a join in query with no relation in schema
Hi everybody,
I'm quite new to Doctrine, and I'm trying that :

return Doctrine_Query::create()
 ->select('News.*, Car.*')
 ->from('News, Car')
 ->where('News.object = ? and Car.id = News.object_id', 'Car')
 ->execute();

schema.yml:
cars:
  name:  string

news:
  title:  string
  object:  string
  objec_id: string

In the schema, there's no relation between news and car, because I
want to use news for other object (like moto for exemple), and I'm not
that good to create a behavior.

Here's the error :
"Car" with an alias of "Car" in your query does not reference the
parent component it is related to.

If anyone can help... ?

thanks in advance to everyone.

πR


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google