Hi Jon,

Have you used it in the functional test suite?

I am getting no data when I test for an existence of a relationship in
functional tests, I've even printed out the resultant content and the
tests are correct their is no data. As soon as I put the joins in
rather than rely on lazy loading the tests work.

I shall try and put together a simple test case.

Cheers
John

On Jul 3, 4:13 pm, Jonathan Wage <[email protected]> wrote:
> Lazy loading is not off in the test suite. It works for me when I have used
> it.
>
>  - Jon
>
>
>
> On Fri, Jul 3, 2009 at 5:22 AM, johnwards <[email protected]> wrote:
>
> > Hello,
>
> > Last week I was driven mad by some functional tests that were failing
> > but when I tried to replicate the fail in the dev environment in the
> > browser the code worked. I couldn't figure it out so I had to code my
> > way around it by calling the tests in a different order.
>
> > Today I started getting the same issue on thankfully some simpler code
> > and I figured it out.
>
> > It seems that functional tests and lazy loading doesn't mix. As soon
> > as I defined my joins the tests pass.
>
> > I can sort of understand this behaviour, however is this the expected
> > behaviour in symfony? Or is something wrong?
>
> > If it is expected, could you put a large sign in foot high letters
> > which flash (say with the blink tag ;-)) informing the unsuspecting
> > programmer.
>
> > Cheers
> > John
>
> --
> Jonathan H. Wage (+1 415 992 5468)
> Open Source Software Developer & Evangelist
> sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org
>
> You can contact Jonathan about Doctrine, Symfony and Open-Source or for
> training, consulting, application development, or business related questions
> at [email protected]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to