[symfony-users] Aw: [SF2] form and OneToMany relationship

2011-06-15 Thread ibrows_symfony
I think, I had a similar problem. Try this in the Profile constructor: public function __construct() { $this-profileAddress = new \Doctrine\Common\Collections\ArrayCollection(); } -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Error on doctrine:schema:update

2011-06-15 Thread Christophe Beyer
Hi, I'm using the beta4, with MAMP on Apple Mac. I have this error on launching the doctrine:schema:update command : Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in

[symfony-users] Re: AdminBundle

2011-06-15 Thread Thomas Rabaix
This should be fixed, see https://github.com/sonata-project/AdminBundle/issues/133 On Wed, Jun 15, 2011 at 9:24 AM, mrdev bbergst...@gmail.com wrote: Hi, i'm stuck for a while now on this. the admin works for my user entity but doesn't with my others entity. here's the error i get :

Re : Re: [symfony-users] Symfony 2 - Doctrine and inheritance

2011-06-15 Thread Jérémy Simonklein
Thank you for your responses. I use the annotation method of Doctrine 2 for my entities. I've searched a little on the doctrine 2 documentation and the Single Table Inheritance is perfect in my case ^^ Thank you yet ;) -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] SF2: How to separate doctrine entity namespaces for each entity manager?

2011-06-15 Thread Leo Jokinen
Hi, The application I'm working on has three different databases. These databases have couple identical table names (but different columns) so I would like to generate entity classes like: MyBundle/Entity/DB1/User.php MyBundle/Entity/DB2/User.php MyBundle/Entity/DB3/User.php Instead of:

[symfony-users] Re : Re: FOSFacebookBundle

2011-06-15 Thread symfonyMan
hello, you have the FOSFacebookBundle working with facebook sdk 3.0 ?? i updated the sdk but i receive this error all time : ErrorException: Notice: A session had already been started - ignoring session_start() in

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread spider
Sorry if I reply to this old post, but what if I want to map enum type to string? I tried the following edit in app/config/config.yml: doctrine: dbal: types: enum: string but each time I try the doctrine:mapping:convert console command it throw the exception about enum

[symfony-users] [Beta4] Handle file upload with array data

2011-06-15 Thread dbenjamin
Hi, I'm trying to handle multiple file uploads with a binded array. // FilesType $builder -add('photo1', 'file', array(type' = 'file')) -add('photo2', 'file', array('type' = 'file')) -add('photo3', 'file', array('type' = 'file')) ; // controller $files = array( 'photo1' = null,

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread Loïc Vernet
The same happens for blob types, it's really annoying. 2011/6/15 spider spide...@gmail.com Sorry if I reply to this old post, but what if I want to map enum type to string? I tried the following edit in app/config/config.yml: doctrine: dbal: types: enum: string

[symfony-users] Re: [symfony2] file upload example?

2011-06-15 Thread Ruben de Vries
Wow, awesome! I won't be able to try implementing it untill 2night but the docs are clear, 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

[symfony-users] [SF2] FOSUserBundle and Propel

2011-06-15 Thread nibsirahsieu
I'm in the progress of making FOSUserBundle compatible with propel (using PropelBundle), but i encountered an issue that i think hard to resolve. This is because the different signature of equals function between UserInterface (Symfony\Component\Security\Core\User\UserInterface) and User object

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread spider
Since I need enum type only to convert from database to ORM mapping, I modified MySqlPlatform.php under Doctrine/DBAL/Platforms to add enum type. It is not very nice way to get it work (next time I'll update vendors I'll lose this edit) but it works and I only need to update my Doctrine Model

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread Christophe COEVOET
Le 15/06/2011 12:05, spider a écrit : Sorry if I reply to this old post, but what if I want to map enum type to string? I tried the following edit in app/config/config.yml: doctrine: dbal: types: enum: string but each time I try the doctrine:mapping:convert console

Re: [symfony-users] [SF2] FOSUserBundle and Propel

2011-06-15 Thread Christophe COEVOET
Le 15/06/2011 14:09, nibsirahsieu a écrit : I'm in the progress of making FOSUserBundle compatible with propel (using PropelBundle), but i encountered an issue that i think hard to resolve. This is because the different signature of equals function between UserInterface

Aw: Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread con
Does this work for doctrine_mongodb as well? -- 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

Re: [symfony-users] Re : Re: FOSFacebookBundle

2011-06-15 Thread Christophe COEVOET
Le 15/06/2011 11:32, symfonyMan a écrit : hello, you have the FOSFacebookBundle working with facebook sdk 3.0 ?? i updated the sdk but i receive this error all time : ErrorException: Notice: A session had already been started - ignoring session_start() in

Re: [symfony-users] [Symfony 2] Change Cache Log Directory

2011-06-15 Thread Christophe COEVOET
Le 15/06/2011 11:29, con a écrit : I'm pretty sure it is somehow possible to change the location of the cache log directory in sf2.. but I didn't find anything on the docs.. http://symfony.com/doc/current/book/http_cache.html#index-15 :/ btw, is it still possible to use php in yml files?

[symfony-users] Get form field value before bind

2011-06-15 Thread Imran
Hi folks, I am using the symfony 1.4, Is there any way to get the form field value before binding the form? What is the best way to edit the form without passing the ID parameter in URL? Thanks -Imran -- If you want to report a vulnerability issue on symfony, please send it to security

Re: Aw: Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread Christophe COEVOET
Le 15/06/2011 15:15, con a écrit : Does this work for doctrine_mongodb as well? This is about adding a DBAL type. So it has nothing to do with mongodb. For mongodb, look at the mongodb odm doc to see if such a thing is possible in the ODM. But the bundle don't have such a configuration

Aw: Re: [symfony-users] [Symfony 2] Change Cache Log Directory

2011-06-15 Thread con
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

[symfony-users] get object for edit the form

2011-06-15 Thread Imran
Hi folks, I am using symfony 1.4 (Doctrine). I have been trying to find the form's object while editing the form. I have been using custom routing for form submission url. Please look at the following case: http://www.something/user/username/comment In the above URL, user is module name,

Re: [symfony-users] [SF2] FOSUserBundle and Propel

2011-06-15 Thread Nibsirahsieu
Thank you for your answer. propel doesn't allow to define a *equal *function in my object class. Runtime Notice: Declaration of FOS\UserBundle\Model\Propel\User::equals() should be compatible with that of BaseObject::equals() in

[symfony-users] Re: [SF2] FOSUserBundle and Propel

2011-06-15 Thread William DURAND
Hi, You have to use a Proxy class that handles the real User Propel object and implements the UserInterface. This is pretty easy but you will have to override the part where the user is retrieved to use your Proxy class instead of your Model class. Regards, William. On 15 juin, 15:44,

[symfony-users] [symfony2] Missing options in select after block customization

2011-06-15 Thread Rytis Daugirdas
Hello, I customized choice_widget block by copying it from div_layout.html.twig to my own template file and adding it under twig/form/resources in config.yml. My customizations work fine when I add a choice field with the form builder, but now country fields are not rendered correctly (empty

[symfony-users] [symfony2] Validating non-entity fields

2011-06-15 Thread Rytis Daugirdas
Hello, What is the recommended way to validate form fields that do not belong to any entity? I don't see this documented anywhere. For example: $builder -add('entity', new EntityType()) // validated by using constraints set for Entity -add('foo', 'text'); // how do you add constraints

[symfony-users] Re: Missing options in select after block customization

2011-06-15 Thread Rytis Daugirdas
My bad, forgot to add extends directive in my template. On Jun 15, 6:13 pm, Rytis Daugirdas rytis.daugir...@gmail.com wrote: Hello, I customized choice_widget block by copying it from div_layout.html.twig to my own template file and adding it under twig/form/resources in config.yml. My

[symfony-users] Re: [symfony2] file upload example?

2011-06-15 Thread Greg
I'm waining for it too :) On Jun 11, 2:00 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: I'm working on updating the documentation to include an exmaple of a fileuploadwith and without Doctrine. It should be available on Monday. Fabien -- Fabien Potencier Sensio CEO -

[symfony-users] [sf2][beta4] - Security, authenticating with forms - Authentication form appears double

2011-06-15 Thread Christophe Bord
Hi all, I was testing the security section from the current documentation but i ran into some trouble. http://symfony.com/doc/current/book/security.html Beneath avoid common pitfalls 2. Be sure the login page isn't secure I tried the describded pitfall access_control: - { path: ^/, roles:

[symfony-users] Charset iso-8859-1

2011-06-15 Thread Reideer
Hello, I have a little problem I need use the iso-8859-1 charset in Symfony 2. -- 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

[symfony-users] Re: database row level permissions

2011-06-15 Thread Youri T.
A pitty that nobody has an idea on this topic. It seems to be a difficult topic, I also can't find a whole lot with Google. Would this be completely have to be custom-made with Doctrine and sfGuard for instance? -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Is it possible create validator dynamicly?

2011-06-15 Thread Vadzim L
Is it possible create validator dynamicly? Something like form builder or other way? $validator = $this-createValidatorBuilder($document) Thanks, Vadzim -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

[symfony-users] Re: [symfony2] file upload example?

2011-06-15 Thread Greg
Is it working on BETA 3 ? Because, i use an embedded form, i bind the request etc... and the IsValid return always FALSE. On 14 juin, 07:55, Fabien Potencier fabien.potenc...@symfony- project.com wrote: On 6/11/11 12:24 PM, Ruben de Vries wrote: Are there any bundles on github that

[symfony-users] Problem with Relationship Doctrine.

2011-06-15 Thread eric.malzone
Hi Folks, I'm having a problem when I create a relation between the tables. I believe the problem occurs when the 'Entities' are generated. Error: Class Espro\OrigensBundle\Entity\IeUnidade has no association named EsproOrigensBundle:IeUnidade Case someone has any idea and wish see the yml

[symfony-users] Re: link to images in css file with assetic

2011-06-15 Thread John Blobsmith
Thanks to reply. I do it : {% stylesheets '@BundleCreator/Resources/Public/css/bundleCreator.css' filter='cssrewrite' %} link rel=stylesheet href={{ asset_url }} type=text/css media=all / {% endstylesheets %} but it not works. The url genrate is /Resources/Public/images/ok.gif but my image

[symfony-users] connecting to SVN repository

2011-06-15 Thread esdev
When I try to connect to the SVN repository for branch 1.4.11 via TortoiseSVN, I get prompted for a username/password. What are those credentials? Thanks. -- 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] [sfFormExtraPlugin] sfWidgetFormJQueryDate and image path

2011-06-15 Thread rbarillec
Hi all, First, thanks to the developers for this great plugin. I have a possible suggestion regarding the image option, which can be specified so that the datepicker button can be replaced with a custom image. At the moment, one needs to pass the absolute URL to the image (as far as I can tell).

[symfony-users] Re: Cascade: persist not working with Forms

2011-06-15 Thread yethee
You need added setter setComments() into your DemoUser model. -- 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

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

2011-06-15 Thread Insight Media Tech
Guess mail2forum would be an interesting alternative because as far as i know there is already a plugin for phpbb3. I however agree that the community should not be split, at least not by creating 2 mailing lists. More than that, if fabien thinks that this is the best way, we should be supportive

[symfony-users] [Doctrine m:m] extra fields in middle table possible with admin generator?

2011-06-15 Thread Youri T.
Is was reading a bit on whether it is possible to have extra fields in the 'middle' table in a many:many relationship when using the admin generator. I have found a few topics but the are all unanswered: http://osdir.com/ml/symfony-users/2010-02/msg00189.html

[symfony-users] Re: Mixing entity and non-entity fields in a single form

2011-06-15 Thread LarsK
Great hint, was looking waiting this. Thanks for sharing! Will be some work to update all forms ... but happy that it works. I'm highly interested in how to validate these fields. Will take a look into this later :) Thanks, Lars On Jun 12, 6:46 pm, Stephan Petzl stephan.pe...@gmail.com wrote:

[symfony-users] Re: [Assetic] How to deal with images references in CSS

2011-06-15 Thread Francisco Facioni
I'm having the same problem, did you find how to solve it? On Jun 2, 12:53 pm, dbenjamin bd.web...@gmail.com wrote: Ok, i added the cssrewrite filter to my assets but i'm not sure how to use it.     {% stylesheets filter='cssrewrite,?yui_css'        

[symfony-users] Re: Symfony2 returning a JSON object

2011-06-15 Thread alex.pilon
It would be nice to emulate similar functionality to rails in which you can respond_with a collection or an object and the action will detect what Content-Type it should respond with. On May 12, 8:13 am, Christophe COEVOET s...@notk.org wrote: Le 12/05/2011 14:04, Javier Garcia a crit : On

Re : Re: [symfony-users] [symfony2] file upload example?

2011-06-15 Thread Greg
is it working on BETA 3 ? In my case, $form-IsValid() is always false. I use an embedded form. -- 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

[symfony-users] Required fields on create/update

2011-06-15 Thread John
How I can make required field validation only for create, and disable it on update, for example when user register, field password should not be null, but on update it should not be null only if user whant update password? -- If you want to report a vulnerability issue on symfony, please send it

[symfony-users] symfony2 - multiple forms on one page/one form for many entities

2011-06-15 Thread Fabian Blechschmidt
Hello List, I am new to symfony2 and I work on my first project with it. It is great and the documentation helped a lot, but for a few days, I have two problems I can't fix: 1) I have a table with settings. it consists of key-value-pairs and I want to show the 20 rows on one page and make it

[symfony-users] Type Guessing in Standalone Symfony2\Form Component

2011-06-15 Thread Michael Gatto
Type guessing in the standalone form component seems completely broken. I registered a Doctrine form bridge which correctly gets a DoctrineOrmGuesser instance. Form/FormFactory-loadGuesser() loops over the extensions and calls getTypeGuesser(), which

[symfony-users] Re: [Beta4] Handle file upload with array data

2011-06-15 Thread eric.malzone
Hi, I don't know if is it, but I think the form of method call to create the form is deprecated. The current way to do it is : $form = $this-get('form.factory')-create(new FormType()); if ($this-get('request')-getMethod() == 'POST') {

[symfony-users] showing only the many part of a relation

2011-06-15 Thread Yoan Pacheco
for example to show only the rows for pone numbers of a employee in a relation where one employee has many pone numbers check this link, its a pdf with a LOT of symfony tips. check this http://www.slideshare.net/jcleveley/working-with-the-admin-generator regards yoan -- If you want to report

[symfony-users] AdminBundle

2011-06-15 Thread mrdev
Hi, i'm stuck for a while now on this. the admin works for my user entity but doesn't with my others entity. here's the error i get : [2/2] Twig_Error_Runtime: An exception has been thrown during the rendering of a template (Route admin_mr_start_mrdiploma_create does not exist.) in

[symfony-users] [symfony2] Any advice/bundle to build a REST API

2011-06-15 Thread Thomas Parisot
Hello everybody, I'm planning to use Symfony2 to create a REST API, dealing with data in MongoDB and MySQL, with user quota (depending on the URL and its method). I have several questions: - what is the best strategy - simple routing/controllers - EverzetRestfulControllersBundle

[symfony-users] How can I get access to some helpers or extensions from twig extension or helpers.

2011-06-15 Thread IgorN
In my twig extension I need to get access to other helpers or extension (for example Assets (sfTemplateHelperAssets) or another twig extension from some bundles) I have service container in my twig extension. Thanks! -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Re: AdminBundle

2011-06-15 Thread Benoît Bergstörm
ohoh, my mind is too complicated ! thanks 2011/6/15 Thomas Rabaix thomas.rab...@gmail.com This should be fixed, see https://github.com/sonata-project/AdminBundle/issues/133 On Wed, Jun 15, 2011 at 9:24 AM, mrdev bbergst...@gmail.com wrote: Hi, i'm stuck for a while now on this. the

[symfony-users] Re: link to images in css file with assetic

2011-06-15 Thread Ricky
I tried filter='cssrewrite', but still could not get the right path to the images file in CSSand finally, i give up assetic when css file include images path.. On Jun 12, 5:32 am, Kris Wallsmith kris.wallsm...@symfony- project.com wrote: You need to add the cssrewrite filter to your tag:

[symfony-users] [Symfony 2] Set cookies with FrameworkExtraBundle

2011-06-15 Thread Arturo Sevilla
Hello, is there a way to set cookies when I am using the @Template annotation of the FrameworkExtraBundle? Without the template you could render the view by using $this-render() and then you could modify the returned Response object. However with the @Template() functionality you return an

[symfony-users] Form one to many

2011-06-15 Thread JaviereN
I'm trying to implement a form to post - post_meta relationship. What I want is to define attributes for the posts and the posts form display all defined attributes in separate fields. I used a entity field in the form of posts but what I want is not a choice field. There is an example of

Re: [symfony-users] [symfony2] Any advice/bundle to build a REST API

2011-06-15 Thread Christophe COEVOET
Le 15/06/2011 17:16, Thomas Parisot a écrit : Hello everybody, I'm planning to use Symfony2 to create a REST API, dealing with data in MongoDB and MySQL, with user quota (depending on the URL and its method). I have several questions: * what is the best strategy o simple

[symfony-users] Relationships, Schema.yml SfDoctrineGuard

2011-06-15 Thread Nima
This is a repost of a discussion that already exists, however no solutions were offered. Here's another try! The Context: a) Add new tables via mysql b) ./symfony doctrine:build-schema c) ./symfony doctrine:build --all-classes --model --forms --filters Item b) in the above list creates an

Re: [symfony-users] Re: [Beta4] Handle file upload with array data

2011-06-15 Thread Christophe COEVOET
Le 15/06/2011 16:49, eric.malzone a écrit : Hi, I don't know if is it, but I think the form of method call to create the form is deprecated. The current way to do it is : $form = $this-get('form.factory')-create(new FormType()); if ($this-get('request')-getMethod() == 'POST') {

Re: [symfony-users] AdminBundle

2011-06-15 Thread Christophe COEVOET
Le 15/06/2011 09:24, mrdev a écrit : Hi, i'm stuck for a while now on this. the admin works for my user entity but doesn't with my others entity. here's the error i get : [2/2] Twig_Error_Runtime: An exception has been thrown during the rendering of a template (Route

Re: [symfony-users] Charset iso-8859-1

2011-06-15 Thread Christophe COEVOET
Le 14/06/2011 22:15, Reideer a écrit : Hello, I have a little problem I need use the iso-8859-1 charset in Symfony 2. This has been fixed in master -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] [SF2]How to make one of the options from entity Field Type selected.

2011-06-15 Thread Ricky
Hi, everyone I built an choice field from entity, but I want to make one of the options selected, is there any way to do that? If I have php, sql, mysql which generated from category table, How can I make sql option selected after I show the page? Do I miss any method or setter? Or if I can

Re: [symfony-users] Problem with Relationship Doctrine.

2011-06-15 Thread Christophe COEVOET
Le 14/06/2011 15:15, eric.malzone a écrit : Hi Folks, I'm having a problem when I create a relation between the tables. I believe the problem occurs when the 'Entities' are generated. Error: Class Espro\OrigensBundle\Entity\IeUnidade has no association named EsproOrigensBundle:IeUnidade Case

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

2011-06-15 Thread waldo2188
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. Big thanks for your help ! Waldo (Symfony beginner) -- If you want to report a vulnerability

[symfony-users] Doctrine build-model problem

2011-06-15 Thread cander
Gang I know lots of people have had this problem based on the searches I carried out this afternoon, but I still can't find a solution. I'm using the latest stable release of Symfony 1.4.11 on Windows 7 Ultimate. I have written the Schema.yml file based on the tutorial and it is located in

Re: [symfony-users] Vendors Script and Doctrine Common

2011-06-15 Thread Christophe COEVOET
Le 14/06/2011 14:40, Sagar Vadher a écrit : After running the vendors script, the master branch is cloned. However SF uses 3.0.x. I've manually checked out 3.0.x, but subsequent updates switch it back to the master. How do I ensure that 3.0.x is the branch that's used (I'm working from

Re: [symfony-users] [sf2][beta4] - Security, authenticating with forms - Authentication form appears double

2011-06-15 Thread Christophe COEVOET
Le 14/06/2011 16:30, Christophe Bord a écrit : Hi all, I was testing the security section from the current documentation but i ran into some trouble. http://symfony.com/doc/current/book/security.html Beneath avoid common pitfalls 2. Be sure the login page isn't secure I tried the

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

2011-06-15 Thread Luis Cordova
+1 vote towards giving the sf1.x people another mailing list but NOT THIS ONE we sf2 guys would like to keep this thank you! On Mon, Jun 13, 2011 at 8:47 AM, Insight Media Tech culori.me...@gmail.com wrote: Guess mail2forum would be an interesting alternative because as far as i know there is

[symfony-users] Re: [symfony2] file upload example?

2011-06-15 Thread Chris
Thanks for these, though I'm trying to implement multiple files upload: using a collection of a FileFormType that contains a file. I am now stuck at the bindrequest step. In my controller I loop through all the items in the ArrayCollection and do $files[$i]-upload() to mimick what's in that

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

[symfony-users] [symfony2] Errors bubble to the main form

2011-06-15 Thread Rytis Daugirdas
Hello, I have a simple form with a few entity forms embedded into it. Validation seems to work, but all errors are reported as global (rendered via form_errors(form)). The same call for each field (form_errors(field)) does not render any errors at all. I did not set error_bubbling property

Re: [symfony-users] Re: [Beta4] Handle file upload with array data

2011-06-15 Thread Benjamin
Yep, it's a simple shortcut, nothing to do with the issue i'm talking about. Any idea about that ? Benjamin. 2011/6/15 Christophe COEVOET s...@notk.org Le 15/06/2011 16:49, eric.malzone a écrit : Hi, I don't know if is it, but I think the form of method call to create the form is

Re: [symfony-users] Re: [Assetic] How to deal with images references in CSS

2011-06-15 Thread Benjamin
No i did not. I had to say to my webdesigner to use absolute paths into his CSS (for instance : /bundles/mybundle/images/. created by assets:install command) That's a very bad practice and i'd love to do otherwise but i don't know how to use Assetic to avoid that. Kris ? Help :) Benjamin.

Re: [symfony-users] Re: [symfony2] file upload example?

2011-06-15 Thread oscar balladares
[?] It is a so ellegant implementation; and callbacks are so usefull. I would marry Fabien is he was a 'she' [?] 2011/6/15 Chris christophe.ben...@gmail.com Thanks for these, though I'm trying to implement multiple files upload: using a collection of a FileFormType that contains a file. I am

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

2011-06-15 Thread oscar balladares
Why when I asked same question no one could came up with a good answer like this one? [?] Thanks a lot. This will help me improve my current and first S2 production-meant app. [?] 2011/6/15 Jeremiah Dodds jeremiah.do...@gmail.com On Tue, Jun 14, 2011 at 12:52 PM, waldo2188

Re: [symfony-users] get object for edit the form

2011-06-15 Thread Erkhembayar Gantulga
HI *Imran*, If you using default CRUD, There is line (!$form-getObject()-isNew() ? '?id='.$form-getObject()-getId() : '') in _form.php partial. After submit you can get id in action very simple. $request-getParameter('id'); That's it. Erkhembayar Gantulga. -- If you want to report a

Re: [symfony-users] Get form field value before bind

2011-06-15 Thread Erkhembayar Gantulga
You can pass object in routing. for example: comment: url: /comment/:name/:date.:sf_format class: sfDoctrineRoute param: { module: comment, action: anyAction } options: { model: YourClass, type: object } In action : you will get $this-comment = $this-getRoute()-getObject(); Good

[symfony-users] [Doctrine2] Delete query + JOIN. (How to translate this SQL query into DQL)

2011-06-15 Thread oscar balladares
Hi everybody! This might go in the Doctrine's mailing list, but knowing you all S2 people are working with Doctrine 2, I'm feeling lucky that you could help me out. This is the kind of stuff I want to achieve: DQL: delete VendorBundle:Photo p JOIN p.bedrooms bp JOIN bp.bedroom b where b.id =

Re: [symfony-users] [Beta4] Handle file upload with array data

2011-06-15 Thread Fabien Potencier
On 6/15/11 12:29 PM, dbenjamin wrote: Hi, I'm trying to handle multiple file uploads with a binded array. // FilesType $builder -add('photo1', 'file', array(type' = 'file')) -add('photo2', 'file', array('type' = 'file')) -add('photo3', 'file', array('type' = 'file')) ; // controller $files =