[symfony-users] Re: Doctrine doesn't free up memory after transaction commit

2011-05-23 Thread Galou
Few years ago, I remember I meet the same problem in a database migration script. The problem was coming from the xdebug module. I don't know how this module work but it was making the script growing up in the memory. The problem was resolved by disabling the xdebug module. On 21 mai, 16:55,

[symfony-users] Yaml parser tries to evaluate the second % token in a string

2011-05-23 Thread kudu
This appears to be a bug in the yaml parser - just looking for confirmation before escalating it. The following yaml config line works as expected foo: a printf template with token 1 '%s' however if I add a second token thus foo: a printf template with token 1 '%s' and token2 '%s' Symfony2

[symfony-users] Re: Symfony2 (Beta 1 ?!) and FOSUserBundle

2011-05-23 Thread riker09
@Christophe: Thanks for the explanation. This was basically my understanding of things. I tried this approach (extending from the superclass) but ran into some errors. It turns out that the current beta 1 of Symfony 2 is incompatible to the UserBundle. I checked out the master versions of both

[symfony-users] Assetic and php template

2011-05-23 Thread John Blobsmith
I try to use assetic with php template like this : ?php foreach ($view['assetic']-stylesheets(array('public/css/*')) as $url): ? link rel=stylesheet type=text/css media=screen href=? php echo $view-escape($url) ? / ?php endforeach; ? But it doesn't work. I have the error : Route

[symfony-users] Re: I am finding a CMS based on Symfony2.0

2011-05-23 Thread Peter Dekkers
You could try Sonata's AdminBundle: https://github.com/sonata-project/AdminBundle http://rabaix.net/AdminBundle/html/index.html http://sftuts.com/doc/jobeet/en/the-admin-generator.html Cheers, Peter -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] how to check if email address existed in db

2011-05-23 Thread Ethan
hello,everyone, i created a register form: class RegForm extends sfForm{ public function configure(){ $this-setWidgets(array( ... 'email'= new sfWidgetFormInputText(array('label'='email address:','default'='@')),

[symfony-users] Re: Symfony2 [Form] date usage with datepicker

2011-05-23 Thread s.rohweder
great, thx, works like a charme On 20 Mai, 17:03, Christophe COEVOET s...@notk.org wrote: Le 20/05/2011 17:00, s.rohweder a crit : Thanx a lot, but at the moment there seem something broken, as I get an error.   Uncaught exception 'InvalidArgumentException' with message 'There is no

Re: [symfony-users] how to check if email address existed in db

2011-05-23 Thread Gábor Fási
Two points: - you're trying to overwrite the existing validator of the email field - as the error message says: sfValidatorPropelUnique may only be used as a post validator. Here's an example: $this-validatorSchema-setPostValidator( new sfValidatorPropelUnique(array( throw_global_error =

[symfony-users] properly download excel file

2011-05-23 Thread el-sid
hi all, does anyone know to properly download an excel file? in my code i have public function executeDownload(sfWebRequest $request) { $excel_file = Doctrine::getTable('Project')-find($request- getParameter('id')); $this-setLayout(false);

[symfony-users] Fatal error: Cannot redeclare class...

2011-05-23 Thread Javier Garcia
Hi, I have downloaded this PayPal API: https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_PHP_SOAP_SDK.tar.gz And I'm getting this error: Fatal error: Cannot redeclare class SOAP_Client in /home/me/app1/ plugins/mbpPlatformFrontendPlugin/lib/paypal/PayPal/SOAP/Client.php on line 83

[symfony-users] Re : Re: Form spread over multiple pages (wizard) ?

2011-05-23 Thread Tristan
Thanks for sharing your feedback ;-) -- 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] Re: Fatal error: Cannot redeclare class...

2011-05-23 Thread Javier Garcia
Well, I just want to add that when I type .../paypal$ grep -R 'Client.php' *, and I'm getting this: PayPal/CallerServices.php://require_once 'PayPal/SOAP/Client.php'; PayPal/SOAP/Client.php:// $Id: Client.php,v 1.1.1.1 2006/02/19 PayPal/SOAP/WSDL.php: //require_once 'PayPal/SOAP/Client.php Javi

[symfony-users] Symfony2 Object Route like in Symfony 1

2011-05-23 Thread Ben Bieker
Hi dear Community, I am currently playing around with the new Symfony 2 and so far I think you did an excellent job! But: I loved the feature from symfony 1 where your route could be defined as an object type. So that if you want to generate an url, you just have to pass an Object and the route

[symfony-users] Access DI contaier in twig layout

2011-05-23 Thread umpirsky
I want to have html meta data configurable in my project. I have my custom service which holds this information (page title, keywords, description...). So I want to access them in my layout. How can I achieve this? -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Re : Symfony2 Object Route like in Symfony 1

2011-05-23 Thread Christophe Willemsen
Hi Ben, I know it is pitty that the previous feature is away ! You could however, add a getRoutingArray() to your object, which returns the array of parameters needed. You could then create a route like this: {{ path('blog_show', blog.routingArray) }} Christophe -- If you want to report a

[symfony-users] Theming Symfony2 application

2011-05-23 Thread umpirsky
I want to have separate css/img (static) files for each theme configured for my Symfony project. How can I do this, probably some url and asset configuration? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

[symfony-users] FOSFacebookBundle

2011-05-23 Thread symfonyMan
Hello, i would like to integrate FOSFacebookBundle in my SF2 web site, i have already my user bundle with user entity and userManager. my problem is how to configure my security firewall ?? i have this : providers: in_db: entity: { class: MyCoreBundle:User, property: email

Re: [symfony-users] Assetic and php template

2011-05-23 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 is this in dev or production mode? if in production, did you generate the assets with app/console assetic:dump ? cheers,david Am 22.05.2011 14:23, schrieb John Blobsmith: I try to use assetic with php template like this : ?php foreach

Re: [symfony-users] Assetic and php template

2011-05-23 Thread Kris Wallsmith
Where are your stylesheets located in your project directory — web/public/css/* ?? On Sunday, May 22, 2011 at 5:23 AM, John Blobsmith wrote: I try to use assetic with php template like this : ?php foreach ($view['assetic']-stylesheets(array('public/css/*')) as $url): ? link rel=stylesheet

[symfony-users] Doxygen Annotations Broken in Beta2

2011-05-23 Thread Roger Webb
Hey Everyone, I'm using Doxygen for my documentation generation. I updated to Beta2 and fixed all of the Doctrine annotations as described in the Update Document and found that all of my doxygen annotations are causing an exception to be thrown: [Semantical Error] The annotation @fn in method

Re: [symfony-users] Doxygen Annotations Broken in Beta2

2011-05-23 Thread Johannes Schmitt
Put an @IgnoreAnnotation(fn) in the doc comment of the class where this annotation is used. Johannes On Mon, May 23, 2011 at 5:05 PM, Roger Webb webb.ro...@gmail.com wrote: Hey Everyone, I'm using Doxygen for my documentation generation. I updated to Beta2 and fixed all of the Doctrine

[symfony-users] Using Doctrine Entities without Symfony (beta2)

2011-05-23 Thread Roger Webb
Hey Everyone, Another annotation issue with the SF2 Beta2 update. I have a separate doctrine_bootstrap.php to use my entities outside of Symfony (for some SOAP services) and it seems that the setAnnotationNamespaceAlias method has been removed from the AnnotationReader, so I removed the call to

[symfony-users] Re: Doxygen Annotations Broken in Beta2

2011-05-23 Thread Roger Webb
The comment in question is below. This is still throwing the same error. Also, it's generating this error based on the method. Will I have to put this annotation in every comment block that uses the fn annotation, or just in the first comment of the file? For the developers, it would IMHO be

Re: [symfony-users] Re: Doxygen Annotations Broken in Beta2

2011-05-23 Thread Johannes Schmitt
As I said, you need to put it in the doc comment of the _class_ even if @fn is used in a method of that class. I understand that it might be a bit tedious to update your code at first, but being a bit stricter in the parsing process allows us to catch errors early on. This will reduce the time

[symfony-users] [Symfony2 - Beta2] @extra annotations - what is the new format?

2011-05-23 Thread keymaster
I've switched everything over to @ORM\ and @Assert\ But not sure what the proper replacement is for @extra. Does it need to be changed also? If so, what class should weuse ? What should the new annotation form look like? Getting this error (worked fine in beta1): [1/2] AnnotationException:

[symfony-users] Re: @extra annotations - what is the new format?

2011-05-23 Thread Matt Robinson
Try these: use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; /** * @Route(/, name=home) * @Template() */ and * @ParamConverter(id,

[symfony-users] SF2 Security (beta2) - Serializing User Entities - Blocking Issue

2011-05-23 Thread Roger Webb
Until the BETA2 update I was getting warnings related to serializing the User Entity, it is a breaking problem in beta2. So, I googled around and found this: http://groups.google.com/group/symfony-users/browse_thread/thread/54ca0790fa861271/edffbbc8343af2d0?lnk=gstq=__sleep#edffbbc8343af2d0

Re: [symfony-users] SF2 Security (beta2) - Serializing User Entities - Blocking Issue

2011-05-23 Thread Luis Cordova
please can you use the same thread to reply to that serialize problem? it will help others to have it all into one place On Mon, May 23, 2011 at 12:23 PM, Roger Webb webb.ro...@gmail.com wrote: Until the BETA2 update I was getting warnings related to serializing the User Entity, it is a

[symfony-users] Re: notice: serialize() __sleep

2011-05-23 Thread Roger Webb
Until the BETA2 update I was getting warnings related to serializing the User Entity, it is a breaking problem in beta2. So, I googled around and found this: http://groups.google.com/group/symfony-users/browse_thread/thread/54c... Following the advice there, I created serialize() and

[symfony-users] Re: SF2 Security (beta2) - Serializing User Entities - Blocking Issue

2011-05-23 Thread Roger Webb
done On May 23, 12:26 pm, Luis Cordova cordo...@gmail.com wrote: please can you use the same thread to reply to that serialize problem? it will help others to have it all into one place On Mon, May 23, 2011 at 12:23 PM, Roger Webb webb.ro...@gmail.com wrote: Until the BETA2 update I

[symfony-users] Re: @extra annotations - what is the new format?

2011-05-23 Thread keymaster
worked like a charm. 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] Re: @extra annotations - what is the new format?

2011-05-23 Thread keymaster
Actually the correct form of the uses is (so you can use the shorted @Route instead of the long pathname): use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route as Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template as Template; use

[symfony-users] Re: notice: serialize() __sleep

2011-05-23 Thread Roger Webb
Issue has been resolved. I had a DateTime in there that I hadn't converted to a string. For anyone else's benefit that may stumble upon this, here's some relevant code snippets that worked out for me: Class Declaration class Users implements UserInterface, \Serializable {

[symfony-users] Cache for multiple environments generated

2011-05-23 Thread Rytis Daugirdas
Hello, I'm playing with symfony2 beta2 right now and I've noticed that if I load the dev environment on empty cache, symfony generates caches for both dev and prod environments. Why? Is this expected behaviour? Rytis -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Re: Cache for multiple environments generated

2011-05-23 Thread Rytis Daugirdas
I figured that out. Requests to non-existant files are routed to the prod controller, so that triggered prod cache initialization. On May 23, 8:43 pm, Rytis Daugirdas rytis.daugir...@gmail.com wrote: Hello, I'm playing with symfony2 beta2 right now and I've noticed that if I load the dev

[symfony-users] SF2 Beta2 - Date Field (3 Text Boxes instead of 1)

2011-05-23 Thread Roger Webb
From the date field documentation: The field can be rendered as a single text box or three select boxes (month, day, and year). I'm not seeing an option for 3 Text Boxes, it rendered as a single text field before which made it work nice with JQuery UI Datepicker. Perhaps the documentation is out

[symfony-users] Re: SF2 Beta2 - Date Field (3 Text Boxes instead of 1)

2011-05-23 Thread Roger Webb
It's in the update doc and I'm having a severe case of the mondays. Form: Renamed option value text of widget option of the date type was renamed to single-text. text indicates to use separate text boxes now (like for the time type). On May 23, 1:01 pm, Roger Webb webb.ro...@gmail.com wrote:

[symfony-users] Re: SF2 Beta2 - Date Field (3 Text Boxes instead of 1)

2011-05-23 Thread umpirsky
Can I render only year and month? Useful for credit cards for example. On May 23, 8:11 pm, Roger Webb webb.ro...@gmail.com wrote: It's in the update doc and I'm having a severe case of the mondays. Form: Renamed option value text of widget option of the date type was renamed to single-text.

[symfony-users] Twig Debug extension

2011-05-23 Thread Rytis Daugirdas
Hello, If I enable the Debug extension and add {% debug %} in a template, it either makes the page not load at all (blank) or run out of memory. What could be the problem? I'm on Windows 7, PHP 5.3.6. Thanks, Rytis -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] SF2 Forms - form_rest() renders fields already rendered with form_widget

2011-05-23 Thread Roger Webb
I have several cases where, due to some picky spacing issues, I have rendered fields manually with form_widget. For instance: tdbFirst Name: / b{{ form_widget(borrower_search_form.first_name, { 'required': false }) }}/td In beta1, I could call form_rest() and it would behave as ( I )

[symfony-users] Re: SF2 Beta2 - Date Field (3 Text Boxes instead of 1)

2011-05-23 Thread Roger Webb
Not that I'm aware of. One possible solution would be to use Jquery to render it invisible (or render the three fields individually and set us the 'attr' parameter to mark it as invisible. Either way you would set a default value for the day. Not sure if that's the best solution, but either one

[symfony-users] SF2 Beta2: Problem after updating: Interface 'Doctrine\Common\Annotations\Reader' not found

2011-05-23 Thread Skaldrom Y. Sarg
I would be very glad if someone could help me with the following problem. Thanks a lot on advance. After updating to Beta2, updating the files, cache clearing and restarting I have the following error: skaldrom@skathe:/var/www/starcs/trunk/code$ app/console doctrine:schema:drop --force PHP Fatal

[symfony-users] Re: SF2 Beta2 - Date Field (3 Text Boxes instead of 1)

2011-05-23 Thread umpirsky
I overrided block date_widget like this: {% block date_widget %} {% spaceless %} {% if widget == 'text' %} {{ block('text_widget') }} {% else %} div {{ block('attributes') }} {{ date_pattern|replace({ '{{ year }}': form_widget(form.year),

[symfony-users] Re: Access DI contaier in twig layout

2011-05-23 Thread umpirsky
Fixed with: twig: globals: globalMeta: @myMetaService On May 23, 3:40 pm, umpirsky umpir...@gmail.com wrote: I want to have html meta data configurable in my project. I have my custom service which holds this information (page title, keywords, description...). So I want to access

[symfony-users] Re: Re : Symfony2 Object Route like in Symfony 1

2011-05-23 Thread Richtermeister
We can't have a custom route class that is smart enough to convert objects to params and vice versa? Daniel On May 23, 6:41 am, Christophe Willemsen willemsen.christo...@gmail.com wrote: Hi Ben, I know it is pitty that the previous feature is away ! You could however, add a

[symfony-users] app.php in prod generates blank page

2011-05-23 Thread abunet
HI, I've installed symfony beta1 on a windows environment (apache 2.2.17 and php 5.3.6) The demo app works fine in app_dev mode, and also in app prod mode with debug = true ($kernel = new AppKernel('prod', true);) if I keep default prod mode: $kernel = new AppKernel('prod', true); the result is a

[symfony-users] Jobeet Day 1, problem with http://www.jobeet.com.localhost/frontend_dev.php/

2011-05-23 Thread Piotr Szczepański
I try access http://www.jobeet.com.localhost/frontend_dev.php/ and get: Notice: require_once(): 1. h-opened_path=[/home/sfprojects/jobeet/lib/ vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/debug/ sfWebDebugPanelDoctrine.class.php] h-filename=[/home/sfprojects/

[symfony-users] Need Help to Install Symfony

2011-05-23 Thread Chinthaka Rukshan Weerakkody
Hi all, I installed symfony in ubuntu in the /var/www/SymfonyProjects directory.I created a /lib/vendor directory in the SymfonyProjects directory and kept the symfony zip folder and extract it inside it and installed it as described in the

[symfony-users] Problem with URL rewriting in htaccess

2011-05-23 Thread stephdemars
Hello everybody! I have a problem in my prod server. All my post requests don't work because of the URL rewriting. Indeed, when I submit a form, I have an error page whereas if I add / index.php/ in the route of the action called when I submit, it works. I don't know why I have this problem

[symfony-users] [Symfony2] Custom Authentication Provider

2011-05-23 Thread robertoNR
Hi to all, I am new about Symfony2, I started using it about a month ago, and I have never used Symfony(1). I must authenticate users from ActiveDirectory so I must write my own AuthenticationProvider, I guess. I have already seen opensky/LdapBundle but only UserProvider is provided by this

[symfony-users] Doctrine generate entities base path error

2011-05-23 Thread arnobeck.sdv
Hello, When I do doctrine:generate:entities, I get : Can't find base path for SdvMonitoringBundle (path: .../src/Sdv/MonitoringBundle, destination: .../src/Sdv/MonitoringBundle). Please help me. I'm migrating from Beta1 to Beta2. -- If you want to report a vulnerability issue on symfony,

[symfony-users] Re : Doctrine generate entities base path error

2011-05-23 Thread arnobeck.sdv
I've found. A bundle cannot be a symbolic link. Too bad. -- 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

Re: [symfony-users] [Symfony2 - Beta2] @extra annotations - what is the new format?

2011-05-23 Thread Rigoberto Reyes sv
* The annotation parsing process has been changed (it now uses Doctrine Common 3.0). All annotations which are used in a class must now be imported (just like you import PHP namespaces with the use statement): Before: /** * @orm:Entity */ class MyUser { /**

[symfony-users] Re: Need Help to Install Symfony

2011-05-23 Thread Chinthaka Rukshan Weerakkody
Anyone out there to help me... -- Chinthaka Rukshan Department of Computer Science and Engineering, University of Moratuwa, Sri Lanka. -- 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

Re: [symfony-users] Re: @extra annotations - what is the new format?

2011-05-23 Thread Matt Robinson
Really? Odd, works for me without the as. Oh well, if it breaks, I'll know what to do. Ta. :) On 23 May 2011, at 18:39, keymaster wrote: Actually the correct form of the uses is (so you can use the shorted @Route instead of the long pathname): use

[symfony-users] Migrating Propel schema to Doctrine

2011-05-23 Thread Esdras Beleza
Hi folks, I'm studying Symfony 2 and porting a very old Symfony 1.0 project. My first step is trying to recognize the code can I reuse and the code I can't. I have an YAML file in Propel format that defines the entities and the database schema. Is there any way I could use it on Symfony 2, any

[symfony-users] Re: Re : Symfony2 Object Route like in Symfony 1

2011-05-23 Thread dustin10
It is provided in the FrameworkExtraBundle. Look at the ParamConverter annotation. Dustin -- 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

Re: [symfony-users] Migrating Propel schema to Doctrine

2011-05-23 Thread Donald Tyler
You *can* use the yaml files in Symfony 2, but they'll need to be updated for Doctrine 2, which is now used. This page has information on using ORM in Symfony 2: http://symfony.com/doc/current/book/doctrine/orm.html One key thing that's different is that in Symfony 1, you would generate PHP

[symfony-users] Aw: SF2 Forms - form_rest() renders fields already rendered with form_widget

2011-05-23 Thread pzwosta
Hi, I have the same problem since BETA 2: public function buildForm(FormBuilder $builder, array $options) { $builder-add('firstname', 'text'); $builder-add('lastname', 'text'); $builder-add('email', 'text'); $builder-add('password', 'repeated',

Re: [symfony-users] Re: Need Help to Install Symfony

2011-05-23 Thread Donald Tyler
You need to setup aliases in the apache configuration file for your site. The images used by Symfony are not stored in the public web folder, so you need aliases to instruct apache where to find them. See this http://www.symfony-project.org/jobeet/1_4/Doctrine/en/01 page for more info. The

Re: [symfony-users] Aw: SF2 Forms - form_rest() renders fields already rendered with form_widget

2011-05-23 Thread Donald Tyler
I would suggest creating this as an issue on github. On Mon, May 23, 2011 at 3:25 PM, pzwosta peter.zwo...@gmx.de wrote: Hi, I have the same problem since BETA 2: public function buildForm(FormBuilder $builder, array $options) { $builder-add('firstname', 'text');

[symfony-users] null data in form - using the Event System

2011-05-23 Thread Roger Webb
This worked in beta1 but not in beta2 [seems to be a theme today : ( ] This was Berhard's nifty solution to my AJAX city/state problem. I print_r()'d the array ($realtor_search_params) and it is indeed populated with data (an associative array), but I get the following exception when I run it:

[symfony-users] Re: SF2 Forms - form_rest() renders fields already rendered with form_widget

2011-05-23 Thread Roger Webb
done On May 23, 3:27 pm, Donald Tyler chekot...@gmail.com wrote: I would suggest creating this as an issue on github. On Mon, May 23, 2011 at 3:25 PM, pzwosta peter.zwo...@gmx.de wrote: Hi, I have the same problem since BETA 2:     public function buildForm(FormBuilder $builder,

[symfony-users] [Symfony2] Reduce coupling in entities

2011-05-23 Thread Problematic
I'm looking for an appropriate way to reduce coupling in a messaging bundle I'm writing, so that I can easily use it between applications. Each instance of the Message entity should have a sender and a recipient, instanceof Symfony\Component\Security\Core\User\UserInterface, which I can

[symfony-users] Re: Doctrine doesn't free up memory after transaction commit

2011-05-23 Thread mohdshakir
I fixed my problem, by freeing up the objects; http://www.doctrine-project.org/projects/orm/1.2/docs/manual/improving-performance/en#free-objects On May 22, 11:41 pm, Galou gael.duc...@gmail.com wrote: Few years ago, I remember I meet the same problem in a database migration script. The

[symfony-users] [sf2][form] - embed a form within an embedded form

2011-05-23 Thread jdewit
For instance, a quiz has many questions, a question has many options. I want to be able to add a many questions dynamically to the quiz form and then add a question options to those questions. Right now, symfony2 doesn't like it when I put a collection within a collection. Is this possible?

Re: [symfony-users] [Symfony2 - Beta2] @extra annotations - what is the new format?

2011-05-23 Thread keymaster
Matt, it may work without the as, didn't try it, but figured the syntax would be consistent with the ORM and Assert syntax. Thanks again 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