Hi Alex,
sorry I completely missed this thread!
Last week however I implemented a extenstion on sfDataSourcePropel,
that allowed me to perform a custom query (not only by defining
criteria, but also by overruling PropelBasePeer to define my own inner-
queries, with nested select-queries). I
@ floria: you're right, but there problem is no less ;-)
I have tried doctrine, but the problem remains the same.
When you have a non-hydratable field in your query, you cannot use
sfDatasourcePropel/Doctrine, because the results gets hydrated toward
a model.
So I tried the sfDatasourceArray
Class Idea has no method called getideaRelationId
Should your getter not be getIdeaRelationId ... note the case of that i
after the get. Perhaps in your code you are calling the method with bad case
On Mon, Sep 7, 2009 at 11:34 AM, E_lexy alexk...@gmail.com wrote:
I am trying to use sfGrid
Hi all,
@Gareth, The class doesn't have this method because the column is the
result of an aggregate function in the Doctrine_query
I have found a solution for the doctrine way, I guess it will be more
or less the same for Propel.
Don't know if it is the nicest way, feel free to comment
The
I didn't realise you were using Doctrine. I have been using Propel pretty
much exclusively myself when I get into symfony at 1.0. My thinking is that
a solution for Propel would be to just create that method in the tables
model class to catch calls to that column and return what the result should
Gareth,
That's what I tried at first too, but what if you cannot get data from this
because it's an aggregate function based on a parameter
Then you would have to look in the criteria (in the propel case) or DQL (in
the case of doctrine) to see if the alias is defined and you can count on
Hi,
just my 2 cents, but the message says :
[code]
Class Idea has no method called getideaRelationId.
[/code]
Symfony complains a bout not being able to find a setter. -
understandable.
I believe i need make a setter, but where? in Idea?
So you surely are talking about a Getter , no ?
Hi,
I cannot help you directly, but I hope that Leon will reply shortly to
help you with your issue.
Bernhard
--
Software Architect Engineer
Blog: http://webmozarts.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google