Re: [symfony-users] about the 'return null' issue in php

2011-03-24 Thread Jeremiah Dodds
On Tue, Mar 22, 2011 at 11:35 PM, Lixin Yu lixinf...@gmail.com wrote: So, is 'return null' a good/bad practice in php? If you return null consistently as a none value, it's not a bad one. If you're inconsistent about it, or if you use it in places where it wouldn't make much sense, it would

Re: [symfony-users] Symfony2 Doctrine2 cheat sheets Released

2011-03-28 Thread Jeremiah Dodds
On Thu, Mar 24, 2011 at 11:28 AM, Tristan tristan.bessou...@gmail.comwrote: Hello, We've just released amazing stylesheets for Symfony2 and Doctrine2. Don't hesitate to tell us what you think. http://www.elao.org/symfony-2/doctrine-2/symfony-2-doctrine-2-cheat-sheets.html I've been

Re: [symfony-users] Serialisation including routing - where should this code go?

2011-04-07 Thread Jeremiah Dodds
On Thu, Apr 7, 2011 at 4:36 AM, OnDistantShores cameron.r...@gmail.comwrote: I'm used to using MVC where models can serialise themselves (into an array, which is easily JSON-able). I'm trying to build an API app where multiple views in multiple modules serialise the same object. I can easily

Re: [symfony-users] Re: Which is the official Symfony2 users forum?

2011-04-08 Thread Jeremiah Dodds
On Fri, Apr 8, 2011 at 4:09 AM, Ruben de Vries rubensay...@gmail.comwrote: Maybe splitting up the google group for sf1 and sf2 would make it easier to search for answers to +1 . It would also be really nice if one of the forum or the group were a mirror of the other -- I've seen some places

Re: [symfony-users] symfony simlink problem

2011-04-13 Thread Jeremiah Dodds
On Wed, Apr 13, 2011 at 9:48 AM, Helloise Smit helloi...@miranetworks.netwrote: i created a simlink: helloises@helloise:/var/www$ sudo ln -s /home/elemental/webroot /var/www/www-rainbowcode-mobi when i ls -lah this simlink: lrwxrwxrwx 1 root root 23 2011-04-13 15:23 www-rainbowcode-mobi -

Re: [symfony-users] Re: doctrine:schema:update error

2011-04-16 Thread Jeremiah Dodds
On Sat, Apr 16, 2011 at 11:23 PM, Geoff G geoffreyfish...@gmail.com wrote: Yes, but you can create that table in phpMyAdmin, so this is obviously a bug in doctrine. http://www.doctrine-project.org/docs/orm/2.0/en/reference/best-practices.html?highlight=reserved#don-t-use-identifier-quoting

Re: [symfony-users] Re: [Symfony2] Controller before and after action (controller filters)

2011-04-17 Thread Jeremiah Dodds
On Sun, Apr 17, 2011 at 12:34 PM, A A kaupa...@gmail.com wrote: Thank you, guys! But maybe I'm too captious, but it doesn't seem to be convenient way to implement 'beforeActionRun' for each controller. I registered 'onControllerRequest' listener. But what should I do further: making switch

Re: [symfony-users] [Symfon2] Twig vs PHP

2011-04-17 Thread Jeremiah Dodds
On Sun, Apr 17, 2011 at 7:25 AM, Ruben de Vries rubensay...@gmail.comwrote: So? Is it me? Or is Twig really getting the upper hand? Twig rocks. Its code is clean and it has well-defined extension points, and it's a pretty well designed library for its purposes. I can't say the same about PHP

Re: [symfony-users] Symfony2 extends twig - creating a new filter

2011-04-21 Thread Jeremiah Dodds
On Thu, Apr 21, 2011 at 1:41 PM, melopoeia epereira...@gmail.com wrote: what's wrong ? Do you have it defined in your config.yml? You should have something along the lines of: services: my_twig_thing: class: My\Twig\Thing tags: - { name: twig.extension } --

Re: [symfony-users] Re: How to setup an easy upgradeable Symfony2 app

2011-04-25 Thread Jeremiah Dodds
If it helps anyone, here's what I've been doing for a project using symfony2 to keep up with PR releases: I have my project in a git repo. When there's a new PR release, I download that, extract it into a different directory, and copy the .git from my project into it. Then I git

Re: [symfony-users] [symfony2] difference between count(...) and ...-count() in Testing?

2011-04-25 Thread Jeremiah Dodds
2011/4/25 Sebastian Göttschkes sebastian.goettsch...@googlemail.com Hi, I'm reading the docs about Testing right now, and I got confused over the usage of count() and -count(): http://symfony.com/doc/2.0/book/testing.html Under the headline Usefull Assertions it says in the first example

Re: [symfony-users] Re: Symfony2 on GoDaddy

2011-05-04 Thread Jeremiah Dodds
On Tue, May 3, 2011 at 6:32 PM, Laurus laurusgroup@gmail.com wrote: I understand that GoDaddy is not the best webhosting but there are a lot of clients who use them. It will be very nice if we are able to solve this issue. Solving it is godaddy updates their supported php versions to be

Re: [symfony-users] doctrine:generate:repositories not found

2011-05-04 Thread Jeremiah Dodds
On Wed, May 4, 2011 at 9:58 AM, umpirsky umpir...@gmail.com wrote: Looks like there is no doctrine:generate:repositories command in Symfony2 beta1. Is it removed? How can I generate repostories now? All it did was make an empty class. If you're using YAML mapping, just put repositoryClass:

Re: [symfony-users] Re: Symfony2 on GoDaddy

2011-05-05 Thread Jeremiah Dodds
On Thu, May 5, 2011 at 6:30 AM, Laurus laurusgroup@gmail.com wrote: This problem is not caused by old PHP version. With phpinfo() I see that they are running PHP 5.3.6. It is something else.. But still don't know what :( Weird, everything I can find on their site suggests that the latest

Re: [symfony-users] Deal with Doctrine - Migrations y Git

2011-05-12 Thread Jeremiah Dodds
On Thu, May 12, 2011 at 6:00 AM, Fran franm...@gmail.com wrote: Hi! I have a Symfony project with Git and we are three developers, two of us are working on a develop branch and the other one is working in a new branch with new features, the problem is the changes in the database and the

Re: [symfony-users] Re: Deal with Doctrine - Migrations y Git

2011-05-13 Thread Jeremiah Dodds
On Fri, May 13, 2011 at 2:52 AM, Fran franm...@gmail.com wrote: Thanks for answering, Yes, each developer works in his own database in his dev machine. The problem is that if we are in migrate version 30 for example and each developer makes changes in the database, each developer would have

Re: [symfony-users] Any chance of creating a new Google group for Symfony2 only?

2011-05-16 Thread Jeremiah Dodds
On Mon, May 16, 2011 at 1:15 PM, keymaster ad...@optionosophy.com wrote: Having all the symfony 1.x releases mixed in with Symfony 2 posts can sometimes make it difficult to discern which Symfony people are talking about in their posts. Not everyone is explicit on whether they are referring

Re: [symfony-users] Any chance of creating a new Google group for Symfony2 only?

2011-05-17 Thread Jeremiah Dodds
On Tue, May 17, 2011 at 2:45 AM, Gareth McCumskey gmccums...@gmail.comwrote: I don't think this is a good idea. I often have a few minutes spare in my busy day and can quickly browse my inbox to see if there are any people I can help. Pushing everything to the forums will mean less people that

Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only?

2011-06-10 Thread Jeremiah Dodds
On Thu, Jun 9, 2011 at 4:20 PM, Chris Sedlmayr ch...@sedlmayr.co.uk wrote: I can't say that i've ever found groups to be an easy way to find information, and generally the posts I moderate seem to re-appear. People are struggling to find what they are looking for and I don't necessarily think

Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only?

2011-06-15 Thread Jeremiah Dodds
On Mon, Jun 13, 2011 at 9:47 AM, Insight Media Tech culori.me...@gmail.comwrote: . I however agree that the community should not be split, at least not by creating 2 mailing lists. The issue with this is that there are two distinct communities -- sf1.x and sf2, and the vast majority of the

Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager

2011-06-15 Thread Jeremiah Dodds
On Tue, Jun 14, 2011 at 12:52 PM, waldo2188 waldo2...@gmail.com wrote: Hi, I wish to know how i can execute some DQL(Doctrine Query Language) from a unit test file. I just want to have access to my Entity for test some function. The unit test will be run with PHPUnit. use

Re: Re : Re: [symfony-users] Symfony2 [beta 4] + Doctrine 2 - Unit Test and EntityManager

2011-06-17 Thread Jeremiah Dodds
On Thu, Jun 16, 2011 at 4:24 AM, waldo2188 waldo2...@gmail.com wrote: Thanks for your response, but, *$this* hasn't method named *getService* . Oh, sorry about that. I forgot that I had defined the getService method :/. From your other response, it looks like you figured it out though, sorry

Re: [symfony-users] UserSecurityIdentity Problem

2011-06-21 Thread Jeremiah Dodds
On Tue, Jun 21, 2011 at 8:26 AM, Kaipi Yann ydani...@gmail.com wrote: What solution we have ? - Override the UserSecurityIdentity so the from account method of the class...but how can I manage to override this class ? - Update the UserSecurityIdentity when the user change his email : But I

Re: [symfony-users] Separating the 3rd Party Bundles from Symfony2 SE to ease upgrades

2011-06-21 Thread Jeremiah Dodds
On Tue, Jun 21, 2011 at 6:10 AM, keymaster ad...@optionosophy.com wrote: On Tuesday, June 21, 2011 9:59:52 AM UTC+3, Christophe COEVOET wrote: Each third party bundle provided by the SE will have its own release lifecycle, not necessarily tied with Symfony release schedules. Will there

Re: [symfony-users] Request for Symfony 2 installation guide

2011-06-21 Thread Jeremiah Dodds
On Tue, Jun 21, 2011 at 5:00 AM, Vaibhav Rajput rajput...@gmail.com wrote: Thanks for giving me quick reply Christophe 3) intl : with xampp, version of the intl is 3.6 and symfony 2 requires 4.* .. i have downloaded and configured intl 4.0 and all required dll... but than also it's giving

Re: [symfony-users] Separating the 3rd Party Bundles from Symfony2 SE to ease upgrades

2011-06-21 Thread Jeremiah Dodds
On Tue, Jun 21, 2011 at 9:54 AM, Christophe COEVOET s...@notk.org wrote: ** Le 21/06/2011 15:36, Jeremiah Dodds a écrit : On Tue, Jun 21, 2011 at 6:10 AM, keymaster ad...@optionosophy.com wrote: On Tuesday, June 21, 2011 9:59:52 AM UTC+3, Christophe COEVOET wrote: Each third party

Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only?

2011-06-21 Thread Jeremiah Dodds
2011/6/21 Fabien Potencier fabien.potenc...@symfony-project.com I've been thinking about this mailing-list issue a lot during the last few months and I'm still convinced that creating more mailing-lists is not the right solution. Anyway, as many people think the contrary, here is what I

Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only?

2011-06-21 Thread Jeremiah Dodds
On Tue, Jun 21, 2011 at 12:02 PM, Luis Cordova cordo...@gmail.com wrote: splitting is counterproductive, we can always hit delete I myself hit a ton of deletes even with sf2 and I am for sf2, so i think people is having too thin of a skin. If you think the use of a 1.x branch of a popular

Re: [symfony-users] Separating the 3rd Party Bundles from Symfony2 SE to ease upgrades

2011-06-21 Thread Jeremiah Dodds
On Tue, Jun 21, 2011 at 11:25 AM, keymaster ad...@optionosophy.com wrote: *bin/vendors* script (the deps file that is used by this script is intended to be modified to add your own dependencies if you want to use this way to manage the dependencies). Thanks, that's great to know. Is

Re: [symfony-users] [sf2] thinking of putting together a seed data bundle

2011-06-22 Thread Jeremiah Dodds
On Wed, Jun 22, 2011 at 11:41 AM, theinterned ned...@gmail.com wrote: Hi, I am looking around for a solution to load seed data into my project. Until now, I have been using fixtures to load the data, but of course this gets very dangerous when you have live, non static data on your