Re: [symfony-users] [Symfony 2] Custom validator with a boolean option?
On 11/27/10 5:20 AM, Gustavo Adrian wrote: Ok, I wanted to start my contribution with this little issue. It's a small fix so it's a great way to learn how to contribute. I'm not very familiarized with github, and I've been working with git for a few weeks. I've followed the steps shown on the docs that talks about contribution at: http://docs.symfony-reloaded.org/master/contributing/code/patches.html http://docs.symfony-reloaded.org/master/contributing/code/patches.htmlMy branch: https://github.com/gfalco/symfony/tree/ticket_9297 https://github.com/gfalco/symfony/tree/ticket_9297Added two simple things: The test against an empty string so it returns true with null AND an empty string. And I've added the unit test accordingly. So, if I'm right, next step is a pull request? Yes, Fabien Thanks! On Fri, Nov 26, 2010 at 11:27 PM, Gustavo Adrian comfortablynum...@gmail.com mailto:comfortablynum...@gmail.com wrote: Ok, that's a bug. Can you file a ticket please? :) Of course :) http://trac.symfony-project.org/ticket/9297 http://trac.symfony-project.org/ticket/9297 On Fri, Nov 26, 2010 at 4:22 PM, Bernhard Schussek bschus...@gmail.com mailto:bschus...@gmail.com wrote: 2010/11/26 Gustavo Adrian comfortablynum...@gmail.com mailto:comfortablynum...@gmail.com: The Url constraint for instance. How could you make it optional? if you don't enter any value on the field, it would complain because the only way it returns true is if $value === null Ok, that's a bug. Can you file a ticket please? :) Bernhard -- Software Architect Engineer Blog: http://webmozarts.com Twitter: http://twitter.com/webmozart -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com http://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 mailto:symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com mailto:symfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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 -- 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
Re: [symfony-users] [Symfony 2] Custom validator with a boolean option?
Ok. I've sent the request. Thanks! On Sat, Nov 27, 2010 at 5:30 AM, Fabien Potencier fabien.potenc...@symfony-project.com wrote: On 11/27/10 5:20 AM, Gustavo Adrian wrote: Ok, I wanted to start my contribution with this little issue. It's a small fix so it's a great way to learn how to contribute. I'm not very familiarized with github, and I've been working with git for a few weeks. I've followed the steps shown on the docs that talks about contribution at: http://docs.symfony-reloaded.org/master/contributing/code/patches.html http://docs.symfony-reloaded.org/master/contributing/code/patches.html My branch: https://github.com/gfalco/symfony/tree/ticket_9297 https://github.com/gfalco/symfony/tree/ticket_9297Added two simple things: The test against an empty string so it returns true with null AND an empty string. And I've added the unit test accordingly. So, if I'm right, next step is a pull request? Yes, Fabien Thanks! On Fri, Nov 26, 2010 at 11:27 PM, Gustavo Adrian comfortablynum...@gmail.com mailto:comfortablynum...@gmail.com wrote: Ok, that's a bug. Can you file a ticket please? :) Of course :) http://trac.symfony-project.org/ticket/9297 http://trac.symfony-project.org/ticket/9297 On Fri, Nov 26, 2010 at 4:22 PM, Bernhard Schussek bschus...@gmail.com mailto:bschus...@gmail.com wrote: 2010/11/26 Gustavo Adrian comfortablynum...@gmail.com mailto:comfortablynum...@gmail.com: The Url constraint for instance. How could you make it optional? if you don't enter any value on the field, it would complain because the only way it returns true is if $value === null Ok, that's a bug. Can you file a ticket please? :) Bernhard -- Software Architect Engineer Blog: http://webmozarts.com Twitter: http://twitter.com/webmozart -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com http://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 mailto:symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com mailto:symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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] [Sf2] Proxies not autoloaded
Hi, With auto_generate_proxy_classes set to true, everything works, but if I set it to false, the Proxy classes cannot be found. I ran doctrine:generate:proxies, which outputs Proxy classes generated to ~/app_name/cache/dev/doctrine/orm/ Proxies $ ls ~/app_name/cache/dev/doctrine/orm/Proxies ApplicationUserBundleEntityUserProxy.php PHP Output : Fatal error: Class 'Proxies\ApplicationUserBundleEntityUtiliserProxy' not found in ~/src/vendor/doctrine/lib/Doctrine/ORM/Proxy/ProxyFactory.php on line 92 What should I do ? It works if I add an entry in src/autoload.php, but shouldn't it be autoloaded without me having to add such entries (or register an extra autoloader to generate the path using getProxyDir() ) ? -- Nicolas -- 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] sfBreadNav2Plugin when using PostgreSQL
Hi all! i am new to Symfony, I started on a project and selected propel for ORM, and sfBreadNav2Plugin for menus, database is implemented on PostgreSQL. I installed sfBreadNav2Plugin and done all steps given in the README file. when I open the main page of my site I receive the following message: 500 | Internal Server Error | PropelException [wrapped: Cannot fetch ColumnMap for undefined column: TREE_LEFT] stack trace at () in SF_SYMFONY_LIB_DIR\plugins\sfPropelPlugin\lib\vendor\propel\util \BasePeer.php line467 ... if ($stmt) $stmt = null; // close if ($criteria-isUseTransaction()) $con-rollBack(); Propel::log($e-getMessage(), Propel::LOG_ERR); throw new PropelException($e); } return $stmt; I appreciate any suggestions. regards, jkarlos -- 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] wordpress blog and sf in same directory
Hi everybody, In my root directory, I have a wordpress site (inside blog folder) and symfony files (specially the web folder). How can i modify my htaccess to set blog for ignore symfony routing please? I tried something like this, but it doesn't work: RewriteCond %{REQUEST_URI} ^/blog/? RewriteRule ^blog(.*)?$ /blog/$1 [QSA,L] #RewriteRule ^(.*)$ /blog/ [QSA,L] Someone can help me please? Thks -- 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] Probleme de routage avec Symfony
Bonjour : Je débute avec Symfony en utilisant le tutoriel jobeet : http://www.symfony-project.org/jobeet/1_4/Propel/en/03 Actuellement je suis bloqué à la fin du cours 3 (the data model) Voici ma configuration : 1) Je sur Ubuntu 10.10 2) Dans /etc/apache2/sites-available/ J'ai créé un fichier jobeet : comme suivant VirtualHost dev.jobeet.com:80 ServerName dev.jobeet.com DocumentRoot /home/user/workspace/web/php/symfony/jobeet/web/ DirectoryIndex index.php Directory /home/user/workspace/web/php/symfony/jobeet/web/ AllowOverride All Allow from All /Directory Alias /sf /usr/share/php/data/symfony/web/sf Directory /usr/share/php/data/symfony/web/sf AllowOverride All Allow from All /Directory /VirtualHost puis j'ai executé la commande : sudo a2ensite jobeet Dans /etc/hosts j'ai ajouté la ligne suivante : 127.0.0.1 dev.jobeet.com Mon probleme est le suivant : J'obtiens correctement la page http://dev.jobeet.com Meme chose pour la page http://dev.jobeet.com/frontend_dev.php as expected Mais pour : http://dev.jobeet.com/frontend_dev.php/job j'obtiens le message d'erreur : The requested URL /frontend_dev.php/job was not found on this server. Apache/2.2.16 (Ubuntu) Server at dev.jobeet.com Port 80 Bien sur j'ai déja executé la commande : php symfony propel:generate-module --with-show --non-verbose-templates frontend job JobeetJob et les tables de la base et les fichier symfony sont créés d'où vient l'erreur ? -- 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] Routing problem with Symfony
I started to learn Symfony (http://www.symfony-project.org/jobeet/1_4/ Propel/en/03), but i am blocked on the lesson 3 (The data model). I followed the instructions, and there are my settings file : 1) I am on Ubuntu 10.10 2) In /etc/apache2/sites-available/ I created the file jobeet : like this VirtualHost dev.jobeet.com:80 ServerName dev.jobeet.com DocumentRoot /home/user/workspace/web/php/symfony/jobeet/web/ DirectoryIndex index.php Directory /home/user/workspace/web/php/symfony/jobeet/web/ AllowOverride All Allow from All /Directory Alias /sf /usr/share/php/data/symfony/web/sf Directory /usr/share/php/data/symfony/web/sf AllowOverride All Allow from All /Directory /VirtualHost then I do this command : sudo a2ensite jobeet In the /etc/hosts I added the line : 127.0.0.1 dev.jobeet.com My problem is this : I get the page http://dev.jobeet.com as expected in the tutorial Also I get the page http://dev.jobeet.com/frontend_dev.php as expected BUT when i try this : http://dev.jobeet.com/frontend_dev.php/job I get this error message : The requested URL /frontend_dev.php/job was not found on this server. Apache/2.2.16 (Ubuntu) Server at dev.jobeet.com Port 80 Of course I have already done this command : php symfony propel:generate-module --with-show --non-verbose-templates frontend job JobeetJob -- 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] Reg: Pagination Plugin for symfony 1.2.9
Hello, I want to perform page navigation and noticed that sfPageNavigation Plugin exists. But I am using symfony 1.2.9 version. I did not find sf Page Navigation plugin suitable for this symfony version. Does it exist one which suffices to this. Can you help me in this scenario. Thanks and Regards, Pradeep -- 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] Wrong date and currency format for locale
Hi, i live in Argentina and speak spanish, so my default culture is es_AR. Ive setted the default culture in apps/frontend/config/settings.yml When I print todays date using the format_date helper it prints 12/25/10, which is mm/dd/yy. Normaly in Argentina the dates are displayed as dd/mm/ such as 25/12/2010. Also when using the format_currency like echo Tengo . format_currency(500) i expect this output: Tengo $500, but i got: Tengo 500. I couldnt find a way to change the date formating or the currency formating for my locale. Is this a bug or im missing something. With regards, Hernan Rajchert -- 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] How to paginate Nested Set results (Doctrine)?
Hi y'all! I am working on a board-type app, using a database model that implements Doctrine's Nested Set behaviour. A hierarchical model where Categories have Sub-categories that in turn have Ads. I am fetching my data with only one query by using the documented method Doctrine_Tree_NestedSet::fetchTree(), as so: code $q = Doctrine_Query::create() -select('c.name, a.title') -from('Category c') -leftJoin('c.Ads a') -where('c.name = ?', $cat_name) -setHydrationMode(Doctrine_Core::HYDRATE_ARRAY); $rootColumnName = $this-category-getRootId(); $options = array( 'root_id' = $rootColumnName ); /code I am able to iterate the resulting array after calling (on the View): code $categories = $sf_data-get('descendants'); /code Here's where the plot thickens. 8-) How can I use the built-in pagination functionality of Doctrine on the result? The class sfDoctrinePager expects a query, which I cannot provide given that I had to pass a query in the first place to be able to use the Doctrine_Tree_NestedSet::fetchTree() method. Ideas, anyone? -- 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] admin-generator, dynamic forms
Hi, Im trying to make some research, and trying to figure out if there is any way i can make some dynamic forms with the doctrine:generate-admin task.. I mean, i have this schema: Calendar: columns: type: { type: string, values: [daily, weekly] } weekday: { type: string } repeat_value: { type: string } And when i print my form, i get a select form field for my type... what i would like is: when i select daily, i can see the weekday form, and when i select weekly, i get the repeat_value form.. It this any possible with the admin-generator any way, or do i have to customize a module if i would like to get this functionality? Hope that someone will give me some feedback, just trying to keep everything as simple as possible.. but i cannot really see how symfony can help me with this task? Best regards, Michael Holm -- 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 framework v1.4.8
I am new to the framework and I have been going through the jobeet tutorial. I am in day 8 of the tutorial working through the unit testing chapter related to testing slugify part. When I run the test as unit:test Jobeet or unit:test, I get the following error messages: ./symfony test:unit lib/ JobeetTest...dubious Test returned status 255 Failed tests: 0 Failed Test Stat Total Fail Errors List of Failed -- lib/JobeetTest 255 1 1 0 0 Failed 1/1 test scripts, 0.00% okay. 1/0 subtests failed, 0.00% okay. My environment is MacPro SnowLeopard (10.6.5), PHP 5.3.3 and Apache 2.2.17. Could not figure out how to fix this issue? Thanks for your help. RS -- 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] NestedSet admin generator
I have been struggling to generate a form which has fields to use the NestedSet behavior. I have my yaml schema defined like so Geography: actAs: NestedSet: Sluggable: unique: true name: friendly_url fields: [title,id] canUpdate: false columns: title: string(255) description: string(255) meta_title: string(255) meta_description: string(255) When running ./symphone doctrine:generate-admin backend geography the resulting fields just have text entry values for the level, lft, and rgt, fields. I have searched quite a bit for information, but the only tutorials I could find reference adding a widget called sfWidgetFormDoctrineChoiceNestedSet which doesn't appear to exist anymore. Has this functionality been removed? Thanks, Dave -- 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] symfony2/Doctrine - Disable query logger
Hi, is there currently any way to disable the query logger? When running large batches of queries, this is running the script out of memory. Thanks! -- 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
Re: [symfony-users] Admin generator - Using different forms for edit and for new
Am 24.11.10 11:52, schrieb Manu: Hi all, How do I configure generator.yml so that it will use one form for the new action, and another for the edit action ? Hi Manu, you can define different forms in the generator.yml by creating a key class under the new/edit section and set it to the form class which should be used: new: class: myNewForm edit: class: myEditForm -- Enrico Beck Freelance Web Developer Georg-Schwarz-Strasse 32 04177 Leipzig Germany fon: +49 (0)341 - 240 79 68 fax: +49 (0)911 - 30 84 42 93 36 mobile: +49 (0)163 - 467 63 99 email: enr.b...@googlemail.com web: http://www.enrico-beck.de -- 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: Problem with doctrine:build-schema
I have been struggling with this same issue. I have written this up on Symfony Experts. I am offering a $20 prize for a solution: http://www.symfonyexperts.com/question/show/id/156 Any help is greatly appreciated. I have been stuck on this for hours. On Nov 16, 6:45 am, Pratik Mazumder pmazumder2...@gmail.com wrote: No Alex, I don't have tabs. These are white spaces only !!! On Tue, Nov 16, 2010 at 5:11 PM, Dominik Tuleweit symf...@tuleweit.comwrote: You have tabs for idention, take whitespaces instead: all: doctrine: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=CHCISDB' username: root password: null Am 16.11.2010 um 12:37 schrieb Pratik Mazumder: Hi Alexander Changed the indentions but still doesn't work :( Pratik On Tue, Nov 16, 2010 at 4:57 PM, Alexandre Salomé alexandre.sal...@gmail.com wrote: It's about indentation : all: doctrine: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=CHCISDB' username: root password: null 2010/11/16 Pratik pmazumder2...@gmail.com Hi I am new to symfony. I have a database created in mysql. While trying to build the schema.yml by running php symfony doctrine:build-schema I get the following error: doctrine generating yaml schema from database Missing class name. The content of the databases.yml is: all: doctrine: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=CHCISDB' username: root password: null Can anybody please help? Thanks Pratik -- 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.comsymfony-users%2bunsubscr...@goog legroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alexandre Salomé http://alexandre-salome.fr -- 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.comsymfony-users%2bunsubscr...@goog legroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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 -- 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.comsymfony-users%2bunsubscr...@goog legroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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] Creating a cron job script
I am wanting to run a daily import script for my symfony site, what I want is to setup a cron job in Cpanel and just have it run a script on my server. I am running into a problem with setting this script up, I can't get it to actually run any code. This was pretty much the only thing I could find on the topic: http://www.lampjunkie.com/2008/04/how-to-use-symfony-and-cron/ and it appears to be kinda old and not working for me at all, tried to modify its a little and still no luck. What are people using to get symfony fired up and running and then run either a specific module/ action or just straight code? Any helps is great. Thanks. -- 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 2] Doctrine memory leaks?
Hi, I have been testing Symfony 2 (and Doctrine 2) and I've created a command to bulk insert data. I've found that in this test, PHP is eating ~ 175Mb per 100k records. Someone has a solutions for this? Command source: http://pastie.org/1308565 Yml Entity Schema Application\GeoBundle\Entity\Country: type: entity table: country fields: id: type: integer id: true generator: strategy: AUTO name: type: string(50) lifecycleCallbacks: { } -- 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: Problem with doctrine:build-schema
Any progress with this? I am desperate for an answer. On Nov 16, 6:45 am, Pratik Mazumder pmazumder2...@gmail.com wrote: No Alex, I don't have tabs. These are white spaces only !!! On Tue, Nov 16, 2010 at 5:11 PM, Dominik Tuleweit symf...@tuleweit.comwrote: You have tabs for idention, take whitespaces instead: all: doctrine: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=CHCISDB' username: root password: null Am 16.11.2010 um 12:37 schrieb Pratik Mazumder: Hi Alexander Changed the indentions but still doesn't work :( Pratik On Tue, Nov 16, 2010 at 4:57 PM, Alexandre Salomé alexandre.sal...@gmail.com wrote: It's about indentation : all: doctrine: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=CHCISDB' username: root password: null 2010/11/16 Pratik pmazumder2...@gmail.com Hi I am new to symfony. I have a database created in mysql. While trying to build the schema.yml by running php symfony doctrine:build-schema I get the following error: doctrine generating yaml schema from database Missing class name. The content of the databases.yml is: all: doctrine: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=CHCISDB' username: root password: null Can anybody please help? Thanks Pratik -- 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.comsymfony-users%2bunsubscr...@goog legroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alexandre Salomé http://alexandre-salome.fr -- 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.comsymfony-users%2bunsubscr...@goog legroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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 -- 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.comsymfony-users%2bunsubscr...@goog legroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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: Problem with doctrine:build-schema
Are there any other scripts I might be able to use to generate the schema? doctrine:build-schema does not work On Nov 16, 6:45 am, Pratik Mazumder pmazumder2...@gmail.com wrote: No Alex, I don't have tabs. These are white spaces only !!! On Tue, Nov 16, 2010 at 5:11 PM, Dominik Tuleweit symf...@tuleweit.comwrote: You have tabs for idention, take whitespaces instead: all: doctrine: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=CHCISDB' username: root password: null Am 16.11.2010 um 12:37 schrieb Pratik Mazumder: Hi Alexander Changed the indentions but still doesn't work :( Pratik On Tue, Nov 16, 2010 at 4:57 PM, Alexandre Salomé alexandre.sal...@gmail.com wrote: It's about indentation : all: doctrine: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=CHCISDB' username: root password: null 2010/11/16 Pratik pmazumder2...@gmail.com Hi I am new to symfony. I have a database created in mysql. While trying to build the schema.yml by running php symfony doctrine:build-schema I get the following error: doctrine generating yaml schema from database Missing class name. The content of the databases.yml is: all: doctrine: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=CHCISDB' username: root password: null Can anybody please help? Thanks Pratik -- 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.comsymfony-users%2bunsubscr...@goog legroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alexandre Salomé http://alexandre-salome.fr -- 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.comsymfony-users%2bunsubscr...@goog legroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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 -- 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.comsymfony-users%2bunsubscr...@goog legroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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] How to set the title to each page dynamically
I found that title is being obtained from the layout.php which is being applied to all pages taking it from there. I wonder how to add the title to each page according to the type of the page showing necessary title. Can someone tell me how to proceed -- 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] 06-Advanced-Forms Some Questions.
Hi, Firstly thanks for advanced forms. It really saved my times. I have attached my screenshot. 1) I do not want to show Advertisement text (in tutorial current photos) on new form. How can i hide it ? 2) How can i change advertisement and newphoto texts ? 3) How can i limit easily photos with 6. If user has uploaded 6 photos, i want to stop image upload. Thank you. -- 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 attachment: Screenshot.png
[symfony-users] about sfBreadNav2Plugin
Hi all! i am new to Symfony, I started on a project and selected propel for ORM, and sfBreadNav2Plugin for menus, database is implemented on PostgreSQL. I installed sfBreadNav2Plugin and done all steps given in the README file. when I open the main page of my site I receive the following message: 500 | Internal Server Error | PropelException [wrapped: Cannot fetch ColumnMap for undefined column: TREE_LEFT] stack trace at () in SF_SYMFONY_LIB_DIR\plugins\sfPropelPlugin\lib\vendor\propel\util \BasePeer.php line467 ... if ($stmt) $stmt = null; // close if ($criteria-isUseTransaction()) $con-rollBack(); Propel::log($e-getMessage(), Propel::LOG_ERR); throw new PropelException($e); } return $stmt; I appreciate any suggestions. regards, jkarlos -- 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] symfony2 console doctrine:mapping:import error
Hi all, I am trying to generate mapping information from an existing MySQL database. (sandbox install of symfony2/doctrine) When I run ./console doctrine:mapping:import Bundle\HelloBundle I get the error [InvalidArgumentException] The service doctrine.orm.default_entity_manager does not exist. How would I go about creating this default entity manager service? Thanks for your help. -- 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: Loss of an URL parameter between executeNew and executeCreate
Hi Tristan, I got the same question a few seconds ago and got it through now. The parameters are still there. Since the method used is POST and you have to use $request-getPostParameter('YOUR PARAM') to get the value. However, you have to go back to the form in your browser and get the new parameter name since symfony changed them. Howard On 11月20日, 上午11時52分, Tristan tristan.bessou...@gmail.com wrote: Hi, I'm implementing concrete inheritance in my model. So I'm trying to do (i'm taking example upon jobeet) : When a user try to post his CV, he'll be redirected on a page on which he will be choosing his main skill (Developper / Network). Both of dev/ network inherits from future_employees, cause it has common informations in it. If he he chooses developper, the form displayed contained additionnal information + common information thanks to the concrete inheritance = it works great [http://pastie.org/private/giykemr6ptxi8pak3pzbg] But as soon as the create action is called, it looses the parameter 'category' and redirects me to a futureEmployeeForm form full of error (missing required parameters), which is logic, because i did not fill a futureEmployeeForm but a developperForm. [http://pastie.org/private/voy4ljhjv7gdoko8qk5jpa ] What's going on ? How to preserve the parameter so that error can be fixed ? Or maybe i'm not using a good method to resolve this inheritance case ? Thanks -- 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] Multiple Choice Validator invalid with AJAX
Dear Symfony Users, I have a odd problem with the sfValidatorChoice and AJAX and need your support. The validator (with 'multiple' = true) works fine when I test my form via a normal submit (using the input-submit button), but returns invalid when I test it with multiple selected values online with AJAX (ajax request is sent to a route which returns only the html- form without the layout which replaces the form on the page) - although the input is actually valid. This is my form configuration: // The options for the select box $catalog_article_group_options = array( 'frames' = 'Frames', 'sunglasses' = 'Sunglasses' ); $this-widgetSchema['catalog_products'] = new sfWidgetFormChoice( array( 'choices' = $catalog_article_group_options, 'multiple' = true ) ); $this-validatorSchema['catalog_products'] = new sfValidatorChoice( array( 'multiple' = true, 'min' = 1, 'max' = 6, 'choices' = array_keys($catalog_article_group_options) ), array( 'required' = 'Please select at least one article group.', 'min' = 'Pease select at least one article group.' )); The setup is clear: The user should select at least one article group form a Select-Element, but can select more if he or her wants to. Testing this form via normal submit in my development environment shows correct behaivor. If one or more values are selected, the input is valid. When I use the form via AJAX the behaivor is different: When I select no value I receive the min validation message, which is correct. Same with one value selected, which returns valid. So far, so good. Now it comes to the error: When selecting more then one value and validate this request this returns a validation message invalid. When I compare the POST- requests of the normal form-submit and the ajax request they are the same ( decoded it says ...lead[catalog_article_group] []=frameslead[catalog_article_group][]=sunglasses...), even the content-type is identical (application/x-www-form-urlencoded). So the request looks fine to me but symfony behaves differently. How come? Has anybody experienced a similar error? Might the reason lie in AJAX (although the request seems to be the same)? Are there problems with my configuration (but why does it work locally then)? Thanks for you help and hints in advance! Kind regards, Philipp -- 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: How to aasign external link in symfony
Concatenate the address with the suffix: $link = http://.$Obj-getUrl(); echo link_to('link name', $link); Something like that On Nov 11, 12:39 pm, deepak deepakkumar...@gmail.com wrote: Hi There is a column in my table which stores external urls e.g. www.amazon.com. Now when I try to use link_to('Product', $Obj-getUrl()). It outputs a href=http://www.myappbaseurl.com/www.amazon.com;Product/a Infact symfony takes all the url as internal uri. Is there a way in symfony thru which I can assign external url to links such as a href=www.amazon.comProduct/a ? Now if there is a http:// added in the url it considers it as external url and redirects properly. Let me know if I make any sense here. Thanks Deepak -- 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 2/Twig and page specific javascripts or stylesheets
Hi, I'm playing with Symfony 2 and Twig and i have a question about javascript and stylesheet tags. It seems impossible to set any page specific stylesheet or javascript because in the template inheritance the parent is rendered before the children. Because of that we are not able to do something like : layout.twig : head title/title {% javascript 'js/myscript.js' %} {% javascripts %} /head index.twig : {% javascript 'js/index.js' %} {% extends SiteBundle::layout.twig %} It really limits the interest of javascript and stylesheet tags, or maybe there is another way to do that ? Thanks. br, Benjamin. -- 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
Re: [symfony-users] Publishing a Symfony project with the front controller on the web-root directory like, instead of a Virtual Host on Apache
Hi, I managed to get symfony to work on free hosting (freehostia.com - no advertising intended). Basically, the root of the ftp was like this : /public_html And the executed code was in the public_html folder. This meant I could but all the content of the web folder in public_html, and the content of the other folders next to the public_html folder. All that was left to do was configure symfony to use the public_html folder instead of a web folder. For that you can check the doc : http://www.symfony-project.org/book/1_2/03-Running-Symfony#chapter_03_sub_configuring_a_shared_host_server http://www.symfony-project.org/book/1_2/03-Running-Symfony#chapter_03_sub_configuring_a_shared_host_serverBe advised though, that free hosts often have other limitations. For example, mine didn't allow me to make calls to external webservices... Hope that helps, Yannick On Fri, Nov 19, 2010 at 5:14 AM, oscar balladares liebegr...@gmail.comwrote: Hi guys and girls! Is there a way to publish a Symfony project with the index.php (front controller) on the web-root directory? (instead of the sf_app_name/web/ directory). I have this question cuase there are many clients that like just to put the project folder on the htdocs directory (mostly are Windows users) and they expect the application to work (This way you are jumping over the virtual host configurations suggested on the jobeet tutorial) And also some free web hosting do not allow configuring a Virtual Host, they expect you to put your index.php on the toplevel directory and that is imposible with a common Symfony project hierarchy (as far as I know and the reason of my question). If I put a SF project on the top level, I would have to access my app like : http://myapp.suckingfreewebhosting.com/*web*/index.php when I would love to do: http://myapp.suckingfreewebhosting.com/index.php So if there is no wayto have the front controller on the web-root directory, my current thoughts are : 1-My clients should have enough money to get a web master services to configure the project for them. 2- Free hosting sucks, I should get a real hosting. That is what takes my breath away this days, cuase I do really would love to use Symfony on really small projects and not only on big projects having access to a virtual host, I dont want to do things like the DIY style anymore. Is there a way to get the front controller in the web-root directory? -- 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.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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] [Symfony2] [Doctrine] - Bi-Directional ManyToOne
Not sure if I should have posted this in the Doctrine group but it does relate to Symfony2 code. I'm trying to create a bi-directional ManyToOne and OneToMany relationship between Trackers and Tickets. * A Ticket belongs to a Tracker * A Tracker can have many Tickets Should be pretty straight forward but I can't get the tracker_id to be anything other than null in the DB. Here's the code: http://pastie.org/1314551 I'm using MYSQL and the latest commit of the Sandbox. -- 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: Acces denied for user www-data
Yes, happen only with my own module... Apparently www-data is the apache2 user on Ubuntu, i will try to see more in this way ... Thx for your reply ! On 18 nov, 15:34, Thomas Ohms thomas.o...@googlemail.com wrote: Does this only happen with you own module? 2010/11/18 Bor1s galina.sebast...@gmail.com Hello all, i am a beginner on symfony and i try to do the jobeet tutorial. All seem to be good as far as the final part of day 2 when i try to do a new module. When i try to access at my module's url ( http://localhost/frontend_dev.php/myModule ) i have an connexion error : [code]PDO Connection Error: SQLSTATE[28000] [1045] Access denied for user 'www-data'@'localhost' (using password: YES)[/code] Even so all work fine; doctrine building all work fine, my database is created.. Normally my user for mysql is root but in error message www-data is user.. my database.yml : [code]all: doctrine: class: sfDoctrineDatabase param: dsn: mysql:dbname=mydbname;host=localhost username: root password: mypwd [/code] I don't understand ... can you help me ? -- 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.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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] Jobeet Tutorial day - 17
Hi I am implementing day 17 of the Jobeet Tutorial. But I am facing a problem with the $hits variable. The $hits array always returns an empty result set. I am using the same procedure mentioned in the tutorial. What could be the problem? Thanks. -- 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 with Symphony Experience - London
Dear all, For anyone who is currently looking to take on permanent employment in London, paying £30-40k, please see the spec below for a PHP Developer and email me, will.harf...@assetresourcing.com Moderators, I trust this will be acceptable and that you don't mind me posting this. --- PHP Web Developer Based In North West London The minimum requirements are at least 3 years PHP experience, with experience of Symphony framework, a major RDBMS (MS SQL, MySQL or Oracle), jQuery, ajax, CSS and HTML. Other desirable skills are; CMS, XML, SOAP, Windows Server and Apache admin. Other skills that will help with the application are Subversion, Eclipse-pdt and Apostrophe CMS. The work will be carried out in PHP with connectivity to SQL Server, however it is envisaged that the role will evolve into other areas of responsibility. Working within a team you will support and develop multiple web sites. The role will typically be involved in programming for website development, extranet, hosted sites, SQL connectivity some front end web development graphics as well as other web projects opportunities. The candidate will also be expected to contribute towards implementing structure, methodologies, to continually help improve and streamline existing in-house work practices. We are seeking a highly motivated professional individual with excellent business practices, including good communication and documentation skills. You will be able to fit into a team; however you will be self motivated. Ideally you have the ability to bring new skills and processes to the company. This excellent opportunity comes with an above average salary as well as fantastic benefits including, Share options, Bonus, Pension, Discount on services and Life insurance. We look forward to your application and helping you reach your full potential with our client. The company is a leading utility company with a unique offering for both the residential and corporate markets, a turnover of £370m+ and currently trades on the UK LSE stock market. -- 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] Bug in doctrine:mapping:import Symfony 2 CLI command?
Hello, I tried importing mapping information from a database containing 15 tables, all tables had primary keys except for one which was causing the following exception: -- [Doctrine\DBAL\Schema\SchemaException] Index '' does not exist on table 'setting'. -- The table 'setting' DID NOT have a primary key. Although it'd UNIQUE and other indexes. The import went fine when I converted the unique index to primary key. Is this a bug? I suppose it is (once confirmed I'll report it) because I'd no trouble in importing the database in symfony 1.4. -- 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
Re: [symfony-users] Re: Migrate full site
I don´t know how to fix it up, Massimiliano Here I opened a forum topic: http://forum.symfony-project.org/viewtopic.php?f=3t=30885p=108442#p108442 Thanks - Original Message - From: Massimiliano Arione garak...@gmail.com To: symfony users symfony-users@googlegroups.com Date: Tue, 16 Nov 2010 04:57:45 -0800 (PST) Subject: [symfony-users] Re: Migrate full site On 15 Nov, 14:54, matiasdig matias...@gmail.com wrote: Warning: sfCore::require(/home/elbuen/symfony/lib/symfony/log/ sfLogger.class.php) [sfcore.require]: failed to open stream: No such file or directory in /www/elbuengustoverduras/symfony/lib/symfony/util/ sfCore.class.php on line 163 The error message is just telling you what is the problem and where it is. Check your paths. cheers Massimiliano -- 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 -- 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 ORM - Bi-Directional ManyToOne
Not sure if I should have posted this in the Doctrine group but it does relate to Symfony2 code. I'm trying to create a bi-directional ManyToOne and OneToMany relationship between Trackers and Tickets. * A Ticket belongs to a Tracker * A Tracker can have many Tickets Should be pretty straight forward but I can't get the tracker_id to be anything other than null in the DB. Here's the code: http://pastie.org/1314551 I'm using MYSQL and the latest commit of the Sandbox. -- 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] sfWidgetFormSelectDoubleList
Hi all, I use Symfony 1.4 I want to configure a select double list using sfWidgetFormSelectDoubleList. My question: - How can a configure the ASSOCIATED items? To the widget's constructor I give the possible options via 'choices' option, ok. But what about the selected defaults? I figured out that the FormField's '$value' property holds the array of associated items, but where can I set this? I really don't wan't to make field's $value public and set this in my input template... ;-) Can anyone help me out? Thanks! this is my code: 'codecs_list' = $this-widgetSchema['codecs_list'] -setOption('renderer_class', 'sfWidgetFormSelectDoubleList') -setOption('order_by', array('id', 'asc')) - setOption('renderer_options' , array('label_unassociated' = 'Desativados', 'label_associated' = 'Ativados', 'associated_first' = false)) On this context, where i can include default values to associated select?? -- 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
Re: [symfony-users] How to set the title to each page dynamically
Hi, You can change the title from actions or templates (views) using slots. http://www.symfony-project.org/jobeet/1_4/Doctrine/en/04#chapter_04_slot_s On Mon, Nov 22, 2010 at 6:36 AM, Pradeep pradeep.pench...@gmail.com wrote: I found that title is being obtained from the layout.php which is being applied to all pages taking it from there. I wonder how to add the title to each page according to the type of the page showing necessary title. Can someone tell me how to proceed -- 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.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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
Re: [symfony-users][symfony 2] Doctrine memory leaks?
Chunking the data and running the import over multiple passes. t On Fri, Nov 19, 2010 at 02:32, Carlos Silva in...@dicarsio.com wrote: Hi, I have been testing Symfony 2 (and Doctrine 2) and I've created a command to bulk insert data. I've found that in this test, PHP is eating ~ 175Mb per 100k records. Someone has a solutions for this? Command source: http://pastie.org/1308565 Yml Entity Schema Application\GeoBundle\Entity\Country: type: entity table: country fields: id: type: integer id: true generator: strategy: AUTO name: type: string(50) lifecycleCallbacks: { } -- 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.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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