You cannot post messages because only members can post, and you are not currently a member.
Description:
Doctrine User mailing list. For questions regarding installation and usage of doctrine.
|
|
|
Custom orderBy with FIELD
|
| |
Hi,
I would like to know if it's possible to do a custom orderBy with
Doctrine? In other words, is there any Doctrine equivalent to this
SQL:
SELECT * FROM `table` ORDER BY FIELD(id,2,5,3,6,4,1);
I know I can do a normal Doctrine_Query and traverse the results array
and do manual sorting (which is my current alternative), however it... more »
|
|
Changing state when adding relation
|
| |
If I have a model loaded from database, $a, and I add another model to
a hasMany relation, $a->Relation[] = $b, should $a->state() be dirty?
|
|
LEFT JOIN / joined results not handled
|
| |
Hello there,
i encountered a problem, when using a left join command in a query.
Basically, what happened is that my joined results were not appearing
in the final results of the query. After carefully testing the
validity of the actual query (by testing the query to mysql directly)
i realized that the problem can not originate from mysql as such.... more »
|
|
problems with doctrine i18n behavior
|
| |
Nei,
I suppose it has to do with your manual insert.
Why do you do a manual insert and not use a normal doctrine query?
...
Klemens Ullmann-Marx
Mobile: +43 681 10720995
Email: mailto:klemens.ullmann-m...@ul l.at
Visit: [link]
Nei Rauni Santos schrieb:
|
|
Empty table fixture
|
| |
Hi. I have to empty table for my tests. How can I do it?
I've tried to write just
------------------------------ ---------
TableName: ~
------------------------------ ---------
(Also {} and nothing instead of ~) but I have
Argument 2 passed to Doctrine_Data_Import::_hasNatu ralNestedSetFormat
() must be an array, null given, called in /srv/www/vhosts/... more »
|
|
Amazon SimpleDB support into DQL
|
| |
Hello
I'm on my way writing a web application and would like to share
perhaps an idea. That is for doctrine ORM to support Amazon SimpleDB.
If for any reason or philosophy you can't where could I start looking
for me to hack?
Thanks,
David
|
|
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... more »
|
|
setUp not called
|
| |
Hey guys,
For various reasons (like implementing extended validation with
specifications) i decided to extend DoctrineRecord. So assuming i have
the entity/class called Person, it would inherit from BasePerson (the
default behavior when autogenerated), and BasePerson would inherit
from My_Doctrine_Record. And of course, My_Doctrine_Record, inherits... more »
|
|
Issue with prepared statements using Doctrine_RawSql
|
| |
I'm having some issue using prepared statements in Doctrine_RawSql.
Using a query like this:
$q = new Doctrine_RawSql();
$result = $q->select('{p.*}')
->from('photographers p')
->addComponent('p', 'Photographer')
->where('p.city_id = ?')... more »
|
|
documentation pdf link broken
|
| |
Hi guys, I wanted to download pdf version of Doctrine 1.1 documentation but the link seems to be broken. Could you please fix it or send it to me? Thanks, Zdenek
|
|
|