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

2011-06-20 Thread Tim Nagel
I dont think there is any point. Using the bin/vendors script and the deps files, you can specify specific versions of the vendor repositories you wish to pull in. You can lock FOSUserBundle at a specific tagged release (once they start getting tagged), or follow HEAD if you desire. I dont see wh

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

2011-06-20 Thread keymaster
3rd party bundles (eg. FOSUserBundle, SonataAdminBundle, etc.) are different from the SE distribution. Different support levels, different release schedules, etc. While it's true in theory that SE comes with third party bundles, they really are only third party with respect to those inside the

Re: [symfony-users] Jobeet Day 3 : problem with Doctrine folder

2011-06-20 Thread oscar balladares
You probably downloaded a previous version than 1.4. I've recently downloaded 1.4 and everything is ok. 2011/6/20 moolligan > Hi everybody, > > I'm doing the Jobeet tutorial whith Symfony 1.4. > On Day 3, I have to modify the schema.yml file (to build my database). > This file is supposed to be

[symfony-users] Re: symfony2 - how to do s.th. after a users has logged in?

2011-06-20 Thread Flo
Thanks, that works like a charm :) On 17 Jun., 16:39, Michael Holm wrote: > Hi, > > Yes you can.. just put it in as an argument: > > arguments: [@session] > > then get the session class in the constructor of the class.. > > http://symfony.com/doc/current/book/service_container.html > > Best regar

[symfony-users] Jobeet Day 3 : problem with Doctrine folder

2011-06-20 Thread moolligan
Hi everybody, I'm doing the Jobeet tutorial whith Symfony 1.4. On Day 3, I have to modify the schema.yml file (to build my database). This file is supposed to be in : config/doctrine/schema.yml But in my project, I only have a /config/ folder (without the / doctrine/ folder inside). Moreover, in

[symfony-users] How to change the backend control

2011-06-20 Thread Rebin Joseph
Hi I have created backend and I have admin modules with me now. I want to change on text field available in the backend form to radio button as True and False. How is it possible with generate,yml entry amends? -- If you want to report a vulnerability issue on symfony, please send it to securit

[symfony-users] [SF2] WebTestCase - Simulate AJAX Request

2011-06-20 Thread Roger Webb
Hey Everyone, I use "if($this->get('request')->isXmlHttpRequest()" in several places and was wondering how you would simulate an XmlHttpRequest using BrowserKit/Client (ie. is there something built in or do I need to set some headers). Roger -- If you want to report a vulnerability issue on sym

[symfony-users] Re: Symfony2 : Query MongoDB collection

2011-06-20 Thread Adrien Mogenet
Seriously dude... I checked ; several times. Here is the version I had in my tab : http://twitpic.com/5ef73k Documentation has just been updated recently, I didn't had your version even 1 hour ago... Thanks anyway On 20 juin, 21:27, Christophe COEVOET wrote: > Le 20/06/2011 21:17, Adrien Moge

Re: [symfony-users] Re: Symfony2 : Query MongoDB collection

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 21:17, Adrien Mogenet a écrit : I don't get it... from the documentation link I was talking about, User class was annotated with : /** @mongodb:Document(collection="users") */ I used this syntax ; you tell me this one is wrong ? When following the link, I see / use Doctrine\O

[symfony-users] Re: Symfony2 : Query MongoDB collection

2011-06-20 Thread Adrien Mogenet
I don't get it... from the documentation link I was talking about, User class was annotated with : /** @mongodb:Document(collection="users") */ I used this syntax ; you tell me this one is wrong ? On 20 juin, 21:10, Christophe COEVOET wrote: > Le 20/06/2011 21:05, Adrien Mogenet a crit : > >

Re: [symfony-users] Symfony2 : Query MongoDB collection

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 21:05, Adrien Mogenet a écrit : Hi everyone, I'm still trying to query my MongoDB store thanks to symfony2 and Doctrine ODM. I'm following these instructions : http://symfony.com/doc/current/cookbook/doctrine/mongodb.html So I tried : $dm = $this->get('doctrine.odm.mongodb.doc

[symfony-users] Symfony2 : Query MongoDB collection

2011-06-20 Thread Adrien Mogenet
Hi everyone, I'm still trying to query my MongoDB store thanks to symfony2 and Doctrine ODM. I'm following these instructions : http://symfony.com/doc/current/cookbook/doctrine/mongodb.html So I tried : $dm = $this->get('doctrine.odm.mongodb.document_manager'); $user = $dm->createQuery('find

Re: [symfony-users] Re : missing first data in data list

2011-06-20 Thread Vincent Lechemin
it's a problem of encoding, make sure your database settings use utf8, and use utf8_encode/decode to display or write back into the database -- Vincent On Jun 20, 2011 1:35 PM, "Jérémy Simonklein" wrote: > Sorry, I've founded the solution. > It came from the accents on my "e" characters. ( I'm f

Re: [symfony-users] Lazy loading in doctrine isn't working

2011-06-20 Thread oscar balladares
Hi. I won't give you the answer you are expecting, but an advice: Try to avoid lazy loading, always; you can do pretty much with DQL. 2011/6/20 jletellier > I updated to Symfony BETA5 and now lazy loading doesn't seem to work > anymore. > > In the controller I did the following: > > $em = $this

Re: [symfony-users] Learn Symfony2 or switch to Zend ?

2011-06-20 Thread oscar balladares
S2 is totally a different product from S1. Is a lot less complex. You could make a mini blog app, with both frameworks (ZF and S2) and point the advantages using S2 (if any :D). If you find out ZF is better then you can take the right decision. It could be a nice presentation with topic addressi

Re: [symfony-users] Re: File upload and mime type detection issues

2011-06-20 Thread Gustavo Adrian
Yes. You can even open the zip without problems. But anyway that's not the correct mime type. And it's not the only case it detects the wrong mime type. That's why I, sadly, have to use the original extension and mime type until I find a better and consistent solution. I know it's not the best way

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

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 18:45, keymaster a écrit : Does anyone else think we should be keeping 3rd party bundles separate from the Symfony2 Standard Edition distribution, as a means of easing future upgrades once Symfony2 becomes stable? ie. app/ bin/ src/ vendor/ (containing only 3rd party bun

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

2011-06-20 Thread keymaster
Does anyone else think we should be keeping 3rd party bundles separate from the Symfony2 Standard Edition distribution, as a means of easing future upgrades once Symfony2 becomes stable? ie. app/ bin/ src/ vendor/ (containing only 3rd party bundles not in the Symfony2 SE distribution)

[symfony-users] Re: symfony2 beta4 Split 1 relation in 3 collections in a form?

2011-06-20 Thread ibrows_symfony
I found out, how I can save the addresses. But I can't get back my saved addresses in the form. Any Idea? -- 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 "symfo

Re: [symfony-users] AsseticBundle ?

2011-06-20 Thread Mario Alberto Alvarez Garcia
Is still there, it just change the location, now you can find it in /vendor/bundles/Symfony/Bundle -- 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 us

Re: [symfony-users] Recursive Routing in Symfony 2

2011-06-20 Thread Fabien Potencier
On 6/20/11 5:15 PM, ddanninger wrote: Hi, iam wondering is it possible to use recursive routing like: /service/folder1 /service/folder1/folder2/folder3 /service/folder1/folder2/../folder10 Just found information for symfony 1.4 so as the routing is different in 2.0 i would be pleased to g

Re: [symfony-users] Recursive Routing in Symfony 2

2011-06-20 Thread Fabien Potencier
On 6/20/11 5:15 PM, ddanninger wrote: Hi, iam wondering is it possible to use recursive routing like: /service/folder1 /service/folder1/folder2/folder3 /service/folder1/folder2/../folder10 Just found information for symfony 1.4 so as the routing is different in 2.0 i would be pleased to g

Re: [symfony-users] AsseticBundle ?

2011-06-20 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, according to UPDATE.md in the root of symfony: ... beta4 to beta5 - -- ... * The AsseticBundle has been moved to its own repository (it still bundled with Symfony SE). ... so if assetic is not part of the SE, this sounds like a mi

[symfony-users] Recursive Routing in Symfony 2

2011-06-20 Thread ddanninger
Hi, iam wondering is it possible to use recursive routing like: /service/folder1 /service/folder1/folder2/folder3 /service/folder1/folder2/../folder10 Just found information for symfony 1.4 so as the routing is different in 2.0 i would be pleased to get some help =) best regards dominik da

Re: [symfony-users] Learn Symfony2 or switch to Zend ?

2011-06-20 Thread Marco Pivetta
Zend Framework 2's MVC still has to be implemented. You should really delay the debate ~3 weeks from today before taking any decision... Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 20 June 2011 17:00, Manu wrote: > My development team created a website with symfony 1.

[symfony-users] Learn Symfony2 or switch to Zend ?

2011-06-20 Thread Manu
My development team created a website with symfony 1.4, but the project turned out a nightmare : few knew how to code with symfony, we were too many working on the project, and we ended up with a mess hard to maintain. Personally, I'm a symfony fan and can't wait the release of 2.0, but the team d

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Michel Salib
@stof 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 uns

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 16:02, Michel Salib a écrit : I dug into it. And I see how to set validation group. But I don't see how to validate a form using it. @stof, is the form component missing something ? When creating a form, you can pass the /validation_group/s option (as an array of groups) to tell

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Michel Salib
I dug into it. And I see how to set validation group. But I don't see how to validate a form using it. @stof, is the form component missing something ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Ваня Масич
Thanks all for help, I'll try use this solution. -- 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 sy

[symfony-users] javascript/jquery form in Symfony 2

2011-06-20 Thread Jérémy Simonklein
Hi all, I've a little bit difficult problem... I would want create a form, thanks to a "MyentityType.php" , but who can render a "JDialog modal form" in it, to add some embedded entities dynamically, like on this page but in a form. I'm working on it

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Michel Salib
Ok I found it here : https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Validator/Constraint.php#L52 So I will be able to use it. Too bad there is not any documentation yet (or I did not find it). -- If you want to report a vulnerability issue on symfony, please send it to s

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Michel Salib
Hi stof, What is a validation group? I never heard of that before. -- 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

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 14:34, ? a écrit : Sorry, I am new at symfony2, and I mean disable some validation rules on create/update. This is my *Entity*, I set for field *password* validation rule *NotBlank*, and this is true only for create, but on update I want disable this rule, how I can do

[symfony-users] sfForkedDoctrineApplyPlugin, several profiles, inheritance, sluggable behavior

2011-06-20 Thread lucia
Hi, I followed the readme of the plugin, the problem is that when I rebuild model I lose behaviors, I have this model: myprofile1: inheritance: type: column_aggregation extends: sfGuardUserProfile actAs: { Timestampable: ~ , Sluggable:{ fields:[name], unique: true}} columns:

[symfony-users] Re: Using 3rd party libraries (eg PHPExcel) with Symfony2

2011-06-20 Thread Jake
Thanks... i put it in the vendor folder and registered a prefix with the autoloader. works! -- 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" grou

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Ваня Масич
Sorry, I am new at symfony2, and I mean disable some validation rules on create/update. This is my *Entity*, I set for field *password* validation rule *NotBlank*, and this is true only for create, but on update I want disable this rule, how I can do this?, Or maybe I should do this in *Form* c

Re: [symfony-users] Stof : MappingException

2011-06-20 Thread Christophe COEVOET
Le 17/06/2011 22:29, mrdev a écrit : Hi there, since i decided to use the translatable feature of the Stof \DoctrineExtensionsBundle i get this error [Doctrine\ORM\Mapping \MappingException] No identifier/primary key specified for Entity 'Stof \DoctrineExtensionsBundle\Entity\LogEntry'. E

Re: [symfony-users] [Symfony2] Can't understand how reverse proxy works

2011-06-20 Thread Christophe COEVOET
Le 18/06/2011 08:38, Inori a écrit : What I have: 2 computers on LAN, web server on one of them, to which I have access from both computers via 192.168.0.100. Symfony2 which uses reverse proxy cache with e-tag. app.php: http://pastebin.com/hupi9bYN controller code: http://pastebin.com/7mWSt3jv

Re: [symfony-users] Using 3rd party libraries (eg PHPExcel) with Symfony2

2011-06-20 Thread Christophe COEVOET
Le 19/06/2011 15:57, Jake a écrit : I'm need to use the PHPExcel library (and other libraries) in symfony2. What is the correct way of setting this up so that the classes etc are found. Should i put it into the vendor directory? How do i set up the configuration etc? Any tips / shared experiences

Re: [symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Christophe COEVOET
Le 20/06/2011 11:09, ? a écrit : 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? Set the /required/ option on the

[symfony-users] Symfony 1.4 - Management of a blob or postGis field with doctrine

2011-06-20 Thread Stéphane Guidoin
Hello, I'm quite new with symfony and I'm trying to make it work with PostGIS thru doctrine. I installed sfMapFishPlugin but my problem seems to be as basic as managing a blob/bytea field. So by considering only the blob question, here is my problem : - I design a table with a blob that look

Re: [symfony-users] Symfony2 doctrine returns not UTF-8 from UTF-8 table

2011-06-20 Thread Lajos Cseppentő
I managed to solve. I had to also set charset in config.yml at the doctrime dbal part On 17 June 2011 16:33, Marco Pivetta wrote: > Could you please check the encoding of your source files? Also check the > content-encoding headers sent by your web server :) > Marco Pivetta > http://twitter.com/

[symfony-users] weird problem with i18n in the table object

2011-06-20 Thread GaB
Hi, I'm building a little blog system. I show the last post in the home page and then when clicked it shows the content of the post. I'm facing this weird problem when calling from an action in differents modules: when calling from the home module: $this->sf_in_blog_posts = Doctrine_Core::

[symfony-users] symfony2 form - data never bound to it

2011-06-20 Thread james
i have a simple form in symfony2 (beta 5), but the post data is never bound to the form. here are my classes (trimmed for brevity): /** * Represents a User * * @ORM\Entity * @ORM\HasLifecycleCallbacks() */ class User { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\Gene

[symfony-users] [symfony2] Required fields on create/update

2011-06-20 Thread Ваня Масич
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

[symfony-users] Symfony 1.4 - Management of a blob (or PostGIS) field with doctrine

2011-06-20 Thread Stéphane Guidoin
Hello there, I'm quite new with symfony and I'm trying to make it work with PostGIS thru doctrine. I installed sfMapFishPlugin but my problem seems to be as basic as managing a blob/bytea field. So by considering only the blob question, here is my problem : - I design a table with a blob th

Re: [symfony-users] Required fields on create/update

2011-06-20 Thread Ваня Масич
Thanks you *Matías Roldán*, but i forget say that question on symfony2. -- 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 g

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

2011-06-20 Thread Vadzim L
Please, any news? -- 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] Symfony2 Form + Doctrine2 Updating an Entity

2011-06-20 Thread avanwieringen
I am testing the Form and Doctrine2 functionality of Symfony2 and I love it however, the documentation on the Symfony2 website is not entirely clear (to me) concerning the updating of an Entity. I have created a simple form for adding and deleting users. My controller action looks like follows:

[symfony-users] Re: File upload and mime type detection issues

2011-06-20 Thread matteosister
I've just tried nowand my script doesn't work too for incorrect mime types... -- 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

[symfony-users] Lazy loading in doctrine isn't working

2011-06-20 Thread jletellier
I updated to Symfony BETA5 and now lazy loading doesn't seem to work anymore. In the controller I did the following: $em = $this->getDoctrine()->getEntityManager(); $task = $em->getRepository('BpErpBundle:BpTask')- >findOneById($taskId); And then I tried to get access of a foreign entity: $auth

[symfony-users] Stof : MappingException

2011-06-20 Thread mrdev
Hi there, since i decided to use the translatable feature of the Stof \DoctrineExtensionsBundle i get this error [Doctrine\ORM\Mapping \MappingException] No identifier/primary key specified for Entity 'Stof \DoctrineExtensionsBundle\Entity\LogEntry'. Every Entity must have an identifier/prima

[symfony-users] AsseticBundle ?

2011-06-20 Thread Arturo Sevilla
Hello, Does Beta5 come without the AsseticBundle installed? I downloaded both the tgz and zip version of Symfony SE with vendors and neither in both files the AsseticBundle was present. Thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-pr

[symfony-users] Re: form from self-referencing object won't build

2011-06-20 Thread Hristo Salabashev
Hi Bart, having `children` the same type as the parent starts an endless recursion ( children like create another children which will create another and so on ). Easiest way to address this (tho maybe not optimal) is to create another definition for the nested type. On Jun 17, 9:02 am, Bart wrot

[symfony-users] [Symfony2] Can't understand how reverse proxy works

2011-06-20 Thread Inori
What I have: 2 computers on LAN, web server on one of them, to which I have access from both computers via 192.168.0.100. Symfony2 which uses reverse proxy cache with e-tag. app.php: http://pastebin.com/hupi9bYN controller code: http://pastebin.com/7mWSt3jv Caching itself works fine (I go to the

[symfony-users] Using 3rd party libraries (eg PHPExcel) with Symfony2

2011-06-20 Thread Jake
I'm need to use the PHPExcel library (and other libraries) in symfony2. What is the correct way of setting this up so that the classes etc are found. Should i put it into the vendor directory? How do i set up the configuration etc? Any tips / shared experiences much appreciated. Thanks -- If you

[symfony-users] [s1.4][d1.2] Insert blob data into database (oracle)

2011-06-20 Thread Tomasz Madeyski
Hi all I struggle with inserting blob data into oracle. I tried two ways: 1. I have a form in which blob_data is $this->setWidget("blob_data", new sfWidgetFormInputFile()); I bind form values $form->bind( $request->getParameter($form->getName()), $request- >getFiles($form->getNam

[symfony-users] Re: File upload and mime type detection issues

2011-06-20 Thread matteosister
I use $ext = $uploadedFile->guessExtension() == null ? $uploadedFile- >getExtension() : $uploadedFile->guessExtension(); where uploadedFile is a field of my entity (not persisted) used in the forms. I followed the cookbook: http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html and so

[symfony-users] Doctrine Annotation

2011-06-20 Thread Cyril Mouttet
Hello guys I have problems by generating a custom repository classe with annotations. I'm following the documentation and got stuck at the Doctrine part: Custom Repository Classes. It says that you have to add following annotation to the Product Entity: /** * @ORM\Entity(repositoryClass="Acme\St

Re: [symfony-users] Re: File upload and mime type detection issues

2011-06-20 Thread Louis Huppenbauer
btw - zip for docx is not that far off. docx-files are essentially zipped xml-files ;) sincerely louis 2011/6/17 Gustavo Adrian : > Thanks for the tip! Yes, this topic is a real headache. I had this type of > issue on centos too (although I don't remember with which filetypes). For > now I'm hand

[symfony-users] Re : missing first data in data list

2011-06-20 Thread Jérémy Simonklein
Sorry, I've founded the solution. It came from the accents on my "e" characters. ( I'm french ) But if someone can told me how I can fix it, it would be nice ;) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this messag

[symfony-users] missing first data in data list

2011-06-20 Thread Jérémy Simonklein
Hi all, Here is my problem : I tryied to display data with the "getRepository()->findAll" function in SYmfony 2. My entities are displayed, but the first occurence is missing. For example I want to display movie's categories from my database which are COMEDY, HORROR,and ROMANCE, but the categor

[symfony-users] [s2][doctrine2] Update LifeCycleCallBack event not working [beta5]

2011-06-20 Thread oscar balladares
Hi everybody!. I'm using Yaml configuration for doctrine metadata. All others events (prePersist, postPersist, preRemove, postRemove) are working properly, but not the preUpdate and PostUpdate. Of course, I'm just calling the 'persist' method of the $EntityManager: $em->persist($AlreadyInDataba

[symfony-users] Re: [SF2] Functional Testing and SF2 Security

2011-06-20 Thread Stephan Petzl
we do a regular form login once per webtestcase. that works, but is a little bit dirty, cause you have to consider the order if the teststep execution. if anyone knows how to do it better: please share your thoughts! BR Stephan On Jun 18, 8:18 am, oscar balladares wrote: > AFAIK, there is no  t