| |
doctrine-user |
In DQL.. you should. :P
On 8 Lip, 03:03, Tom Boutell <t...@punkave.com> wrote:
> You should also be consistent about your capitalization although that
> 2009/7/7 Chtipepere <chtipep...@gmail.com>:
> > Hi everybody,
> > return Doctrine_Query::create()
> > schema.yml:
> > news:
> > In the schema, there's no relation between news and car, because I
> > Here's the error :
> > If anyone can help... ?
> > thanks in advance to everyone.
> > πR
> --
> like this one. Your code would work just the way you wrote it. Except
> that in your schema, cars is plural, and in your code it is singular.
> You should change cars to Car in your schema.yml.
> might not be a dealbreaker.
> > I'm quite new to Doctrine, and I'm trying that :
> > ->select('News.*, Car.*')
> > ->from('News, Car')
> > ->where('News.object = ? and Car.id = News.object_id', 'Car')
> > ->execute();
> > cars:
> > name: string
> > title: string
> > object: string
> > objec_id: string
> > want to use news for other object (like moto for exemple), and I'm not
> > that good to create a behavior.
> > "Car" with an alias of "Car" in your query does not reference the
> > parent component it is related to.
> Tom Boutell
> P'unk Avenue
> 215 755 1330
> punkave.com
> window.punkave.com