Re: [symfony-users] Re: Symfony2 orm problems with FOSUserBundle

2011-04-25 Thread Daniel Gomes
No, you have te create your own Group Entity, like MyBundle\Entity\MyGroup. If you create this Entity with the "Group" name it will cause an mysql error because the group word is reserved. If you want to use groups you have to create that entity like says in the documentation and make the relation

[symfony-users] Re: symfony2: session handling and varnish

2011-04-25 Thread Mauricio Morales
Thanks David... I'll check it out and I'll post if I found a clever workaround for this. Peace... On Mon, Apr 25, 2011 at 12:50 PM, David Buchmann wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > hello mauricio, > > i found no bullet proof thing to control it in general. however, i >

[symfony-users] symfony doctrine:data-load

2011-04-25 Thread Alex
Hi all, I'm trying to follow the tutorial to learn how works symfony. I'm currently at the step 3, and instead of only copy-paste the code, I also create a second "project" in parralel to reproduce what I'm learning. But, I'm encountering an issue when using the data-load doctrine after filling m

[symfony-users] [Symfony2] Override framework config

2011-04-25 Thread Nebula
I'm looking for the right way to use my own UrlMatcher and PhpMatcherDumper i cant redefine configuration variables without editing the source code router.options.matcher_base_class router.options.matcher_class router.options.matcher_dumper_class I want to use ut8-compatible routes and urldecode

[symfony-users] Symfony2 returning a JSON object

2011-04-25 Thread stickaforkinme
I'm sure this is a really really stupid question but I can't seem to find a clean way to return a JSON object, i.e. by not calling a controller and just returning the result of json_encode. This was easy is Symfony 1.x but I have no idea how to do it in Symfony2. Any body know how to do this?? I h

[symfony-users] problem with doctrine:data-load

2011-04-25 Thread nightmare
Hello, before all sorry for my english. Ok, im doing a application with netbeans like ide ,postgres database and the 1.4 version of Symfony over ubuntu. My problem appear when i try to make data-load, the console show me exactly this SQLSTATE[42P01]: Undefined table: 7 ERROR: no existe la relació

Re: [symfony-users] [Symfony2] Doctrine2 Associated Entities as Id Fields issue

2011-04-25 Thread Максим Воробей
I follow manual at http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/composite-primary-keys.html#identity-through-foreign-entities and, as you can see, i also added a pri

[symfony-users] Doctrine data-dump and data-load Fixtures

2011-04-25 Thread David
I have loaded a MySQL table then dumped it for creating a fixture file and one of the fields is defined as a string, but it can have characters and numbers. When it is dumped to yaml, the data that has the characters and numbers are not being put in quotations, while the data with all numbers are.

Re: [symfony-users] [Symfony2] Doctrine2 Associated Entities as Id Fields issue

2011-04-25 Thread Максим Воробей
oh, found out "...for Doctrine 2.1 even foreign keys as primary keys are supported." 2011/4/25 Максим Воробей > I follow manual at > http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/composite-primary-keys.html#identity-through-foreign-entities >

RE: [symfony-users] [Symfony2] Doctrine2 Associated Entities as Id Fields issue

2011-04-25 Thread David Rinaldi
Yes the yaml specifies a primary key and the ddl being generated also specifies one. As a matter of fact the real table that I am trying to unload and load has both a primary and foreign key. The test table is just a re-creation of the problem. See ddl below: CREATE TABLE testtable (

[symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin

2011-04-25 Thread niksfirefly
I am using symfony 1.4.12 with admin generator and ahDoctrineEasyEmbeddedRelationsPlugin with schema below: Client: actAs: Timestampable: Sluggable: unique: true fields: [name] canUpdate: true tableName: Clients options: charset: utf8 columns: id: p

[symfony-users] Re: optional sfGuard user_id in plugin

2011-04-25 Thread Roman Sichny
if ($user instanceOf sfGuardSecurityUser) ... -- 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 symf

Re: [symfony-users] Re: No route found for "GET /_configurator/step' When clicking 'Configure your application...'

2011-04-25 Thread Erkhembayar Gantulga
this error happened me too. How do i handle it ?. 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 em

[symfony-users] optional sfGuard user_id in plugin

2011-04-25 Thread Martin Settle
Hi all. I am working on an accounting general ledger plugin that I expect to use in some projects I have planned. I would like to have a created_by field in one of my tables set automatically, but only if sfGuardPlugin is in use in the specific application. Is there a way to test if sfGuard is be

[symfony-users] Symfony2 exception trying to initalize FOSUserBundle with ODM/MongoDB

2011-04-25 Thread JC
I am using Symfony2 and the latest image from Doctrine that supports ODM/MongoDB. At the time of initialization via the dependency injection, I get the following exception: Fatal error: Uncaught exception 'InvalidArgumentException' with message 'The parameter "form.factory.class" must be defined.

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

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

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

2011-04-25 Thread Sebastian Göttschkes
Hi, I'm reading the docs about Testing right now, and I got confused over the usage of count() and ->count(): http://symfony.com/doc/2.0/book/testing.html Under the headline "Usefull Assertions" it says in the first example to use count($crawler->filter($selector)) and in the second line $craw

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

2011-04-25 Thread Gustavo Adrian
I use the vendors.sh script and I update it to include new vendors. Three simple reasons: 1) It's faster for development. I don't need to download anything from github every time I need to clone my project somewhere else. I just need to download vendors when I want to update them. 2) I don't have

Re: [symfony-users] Re: [sf2] Disable WDT

2011-04-25 Thread Luis Cordova
check the code bundle you will find it easily, if not fork it, implement the feature and pull request so we can all share it, thanks On Mon, Apr 25, 2011 at 9:36 AM, Paul Dugas wrote: > On Mon, Apr 25, 2011 at 10:31 AM, Paul Dugas > wrote: >> On Mon, Apr 25, 2011 at 10:29 AM, Luis Cordova wrot

Re: [symfony-users] Re: [sf2] Disable WDT

2011-04-25 Thread Paul Dugas
On Mon, Apr 25, 2011 at 10:31 AM, Paul Dugas wrote: > On Mon, Apr 25, 2011 at 10:29 AM, Luis Cordova wrote: >> WDT is a bundle, just disable it and it will go away > > I only want it to "go away" on one page. In SF1, I could add sfConfig::set('sf_web_debug', false) to the actions that return the

Re: [symfony-users] Re: [sf2] Disable WDT

2011-04-25 Thread Paul Dugas
On Mon, Apr 25, 2011 at 10:29 AM, Luis Cordova wrote: > WDT is a bundle, just disable it and it will go away I only want it to "go away" on one page. P -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message becau

[symfony-users] Re: No route found for "GET /_configurator/step' When clicking 'Configure your application...'

2011-04-25 Thread codecowboy
correction, the WebConfiguratorBundle is in vendor/bundles/Symfony/ Bundle entering http://local.symfony2/app_dev.php/_configurator/step/0 gets me to the page where I enter the db details but then If I hit next, I'm back at my original error (with the exception that it is now 'No route found for "

Re: [symfony-users] Re: [sf2] Disable WDT

2011-04-25 Thread Luis Cordova
WDT is a bundle, just disable it and it will go away On Mon, Apr 25, 2011 at 9:27 AM, Paul Dugas wrote: > Bump. > > There was a way to do this in SF1 but I've not yet figured out a way > to do it in SF2.  Anybody know how to prevent the developer toolbar > from appearing on a page?  I'm working w

[symfony-users] Re: [sf2] Disable WDT

2011-04-25 Thread Paul Dugas
Bump. There was a way to do this in SF1 but I've not yet figured out a way to do it in SF2. Anybody know how to prevent the developer toolbar from appearing on a page? I'm working with a client-side UI framework (ExtJS) and the toolbar is messing with the layout. I'd like to disable it for this

[symfony-users] No route found for "GET /_configurator/step' When clicking 'Configure your application...'

2011-04-25 Thread codecowboy
I have installed Symfony2 PR12 which displays the welcome page and demo application. However, when I try to use the configurator, I get the error: # request.ERROR: Symfony\Component\HttpKernel\Exception \NotFoundHttpException: No route found for "GET /_configurator/ step" (uncaught exception) The

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

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

[symfony-users] Re: Form helper problems in Twig templates: Twig was looking for the "with" or "from" keyword

2011-04-25 Thread Skaldrom Y. Sarg
Same problem here. The file "TransTokenParser.php" has been stripped off several forms of translation-possibilities eg. {% trans "foo" from "bar" %} is not supported at the moment. I think and hope that this will work again after the form-merging is over. -- If you want to report a vulnerabilit

[symfony-users] Re : Re: Upload file in symfony2

2011-04-25 Thread symfonyMan
Hello, I tried this but, it don't work as i want http://pastebin.com/mz8Ryvir the image file is stored in web server with the temp name and no extension ... Thanks -- 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: session handling and varnish

2011-04-25 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hello mauricio, i found no bullet proof thing to control it in general. however, i realized that i had framework.session.auto_start: true in my config.yml i set this to false and now i only get a session if one is started for some specific reason (i.e