How can I find value :)? Im using profiler, raw query was tested on DB
and MIN(f.date) has value, after large var_dump of $query value is
stored in some object, but there is no way to get it. Maybe its some
kind of bug with access to value.
> How can I find value :)? Im using profiler, raw query was tested on DB > and MIN(f.date) has value, after large var_dump of $query value is > stored in some object, but there is no way to get it. Maybe its some > kind of bug with access to value.
Simple print_r($query->toArray(true) prints content only for "Twr"
table (no nesting, wired? since we have $deep = true), and there is no
column "mdd".
Greetings,
Mylith
On 16 Maj, 19:03, "Jonathan Wage" <jonw...@gmail.com> wrote:
> > How can I find value :)? Im using profiler, raw query was tested on DB
> > and MIN(f.date) has value, after large var_dump of $query value is
> > stored in some object, but there is no way to get it. Maybe its some
> > kind of bug with access to value.
On Mon, May 19, 2008 at 2:48 AM, Mylith <myl...@gmail.com> wrote:
> Thanks for reply Jon,
> Simple print_r($query->toArray(true) prints content only for "Twr" > table (no nesting, wired? since we have $deep = true), and there is no > column "mdd".
> Greetings, > Mylith
> On 16 Maj, 19:03, "Jonathan Wage" <jonw...@gmail.com> wrote: > > Do a print_r($query->toArray(true)); and you will see the path to the > value.
> > - Jon
> > On Fri, May 16, 2008 at 9:50 AM, Mylith <myl...@gmail.com> wrote:
> > > How can I find value :)? Im using profiler, raw query was tested on DB > > > and MIN(f.date) has value, after large var_dump of $query value is > > > stored in some object, but there is no way to get it. Maybe its some > > > kind of bug with access to value.
In this case select with primary key helps, value is accessible from
Fk object, but (right there is but;) when we have a collection (remove
where with primary key of Twr table, or any other where) we have drama
with "mdd" value.
This is sample of first 5 records that should have mdd value (I know
values from raw query) and path to get them.
As far I as I know, aggregate value should be in first record (only
$query index should change), Im I wrong? We need to do three
iterations to find value?
--
Mylith
On 19 Maj, 15:37, "Jonathan Wage" <jonw...@gmail.com> wrote:
> I think it may be because you need to select the primary key for the table
> you are doing the MIN() on.
> - Jon
> On Mon, May 19, 2008 at 2:48 AM, Mylith <myl...@gmail.com> wrote:
> > Thanks for reply Jon,
> > Simple print_r($query->toArray(true) prints content only for "Twr"
> > table (no nesting, wired? since we have $deep = true), and there is no
> > column "mdd".
> > Greetings,
> > Mylith
> > On 16 Maj, 19:03, "Jonathan Wage" <jonw...@gmail.com> wrote:
> > > Do a print_r($query->toArray(true)); and you will see the path to the
> > value.
> > > - Jon
> > > On Fri, May 16, 2008 at 9:50 AM, Mylith <myl...@gmail.com> wrote:
> > > > Hello,
> > > > Please take a look, some code for example:
> > > > How can I find value :)? Im using profiler, raw query was tested on DB
> > > > and MIN(f.date) has value, after large var_dump of $query value is
> > > > stored in some object, but there is no way to get it. Maybe its some
> > > > kind of bug with access to value.