[symfony-users] Bug in Symfony/Doctrine mixing soft/hard deletes
Hello Folks, After a day or so of no response on my bug report on symfony I decided to follow the code through myself to see if I can figure it out: http://trac.symfony-project.org/ticket/8898 I think the bug is in doctrine and due to the way soft delete handles cascades. Anyone else encountered this? Any suggestions? My thinking is that the soft delete behaviour needs to gather the cascades that need to be deleted and call delete on them. Cheers John Wards -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Symfony Live Hub in Oxford, UK - Any interest
We (http://www.whiteoctober.co.uk) are thinking about being a Symfony Live hub. We are in Oxford, UK. Anyone interested in coming along? We have loads of room, but would like an idea of numbers. Email me john at whiteoctober.co.uk to say if you are coming etc. Cheers John -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] PHP Developer role in Oxford
Hello, We (http://www.whiteoctober.co.uk) are recruiting a PHP Developer with 1-2 years experience. Core skills we are looking for are PHP and MySQL, anything else is a bonus (like symfony). You should enjoy learning new things. In return you will get a nice salary and perks like free fruit and a desk in our nice new huge office. We build normal CMS sites for people using our CMS system which is powered by PHP/XSLT and we build custom web applications using the symfony framework. We "do agile", specifically scrum. Don't worry about not knowing it, we are all learning it from our new Production Manager who is whipping us into shape. Clients include BT, Motorola, Yell and lots of companies you haven't heard of who we build cool things like online membership databases and carbon trading platforms for. The role will involve working the entire life of a project from cutting up the PSDs from the designer into valid html templates right through to dealing with bugs/feature enhancements 6 months after project go live. You will join an expanding team of 5 developers, 1 production manager, 1 account manager and a MD and work with some of the best design houses in the south. We do all our own recruitment so if you aren't a PHP Developer then I might be slightly rude to you. Email j...@whiteoctober.co.uk with a CV Find us on twitter.com/whiteoctober -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Functional tests for file uploads
Oh God. Ignore me I am being stupid. My tests were working as expected I hadn't completed a part of the code. On 8 Feb, 16:08, johnwards wrote: > Hello, > > The documentation says that I should be able to do the following: > > http://www.symfony-project.org/jobeet/1_4/Doctrine/en/11 > "The browser also simulates file uploads if you pass the absolute path > to the file to upload" > > However I can't seem to get it to work, the code actually works I have > tested it with a real upload but I get a validation error saying > required field. > > $form_data = array( > "passport" => array( > "present_citzenship" => "United Kingdom", > "passport_number" => "123456789", > "issue_date" => array( > "day" => "28", > "month" => "10", > "year" => "2003" > ), > "expiry_date" => array( > "day" => "27", > "month" => "10", > "year" => "2010" > ) > ), > "passport_scan" => array( > "file"=>sfConfig::get('sf_test_dir')."/fixtures/images/test.jpg" > ) > ); > > The pasport scan form is embedded. I remove the embedded passport form > and the validation passes fine. > > Has anyone actually got functional testing of uploads working? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Functional tests for file uploads
Hello, The documentation says that I should be able to do the following: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/11 "The browser also simulates file uploads if you pass the absolute path to the file to upload" However I can't seem to get it to work, the code actually works I have tested it with a real upload but I get a validation error saying required field. $form_data = array( "passport" => array( "present_citzenship" => "United Kingdom", "passport_number" => "123456789", "issue_date" => array( "day" => "28", "month" => "10", "year" => "2003" ), "expiry_date" => array( "day" => "27", "month" => "10", "year" => "2010" ) ), "passport_scan" => array( "file"=>sfConfig::get('sf_test_dir')."/fixtures/images/test.jpg" ) ); The pasport scan form is embedded. I remove the embedded passport form and the validation passes fine. Has anyone actually got functional testing of uploads working? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Form Validation based on a tainted value?
Hello, I have a form containing dates, I have two fields called: Auction date Baseline required by Auction date must be after the baseline date, now I can do this on existing objects by using the date validator and the "min" field. However, I need the tainted value for edits and new data. The tainted values are not avaliable until after bind. Now I could overload the bind method and then call my setup of validators after then but this seems wrong, especially since bind uses the validators...so I'd have to call them twice?? I'm sure I am missing something here...help. Cheers John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Doctrine Lazy loading turned off in test evn?
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 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 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 jonathan.w...@sensio.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: about Doctrine vs Propel performance
If you want to use an ORM and squeeze performance out of it then maybe look more closely at doctrine. Have a look at the docs: http://www.doctrine-project.org/documentation/manual/1_0/en/improving-performance Things to look at, is make sure you do your joins correctly and don't rely on lazy loading. Make sure you set up your indexes correctly. Also don't hydrate the objects if you don't need to, just hydrate as an array. This helps speed things up. Cheers John On Jul 3, 2:09 pm, James Cauwelier wrote: > If performance is important, then don 't use an ORM. You are just > gonna get yourself into trouble. > > A good midway solution could be to use an ORM for your backoffice, but > to use simple queries for your frontend. Take this into account when > desiging your tables. > > Suppose a product has a limited lifespan like so > > PRODUCT > > - id > - name > - date_from > - date_until > > Then I would split this into two tables for the frontend like so: > > PRODUCT > - id > - name > - alive (boolean indicates whether a product should be visible or > not) > > and > > PRODUCT_LIFE > - product_id > - date_from > - date_until > > The point is that you really don 't need the date columns in your > frontend, only easy and fast selection is important. So you will use > an tinyint that is indexed so that selection is blazingly fast on your > frontend. This will complicate things on the backend, but this is > something that can be handled with subforms and doctrine. But again, > I wouldn 't recommend an ORM for the frontend. > > You could do the same for other functionality and limit your actual > product table to the fields that are actually necessary in the > frontend. > > James > > On 3 jul, 13:23, Cyrille37 wrote: > > > Hello, > > For a special project performance is more important than Orm > > functionnalies, but I would like to use an Orm. > > I found on google some benchmark that show Propel really faster than > > Doctrine. But perhaps those Benchs are old and deprecated, I do not > > know. > > > Do you have experiences about performances diff betwen Propel (last > > version) and Doctrine (last version) ?? > > > Thanks > > Cyrille. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Doctrine Lazy loading turned off in test evn?
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 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---