Re: [symfony-users] Customize sfDoctrineGuardPlugin forms

2011-03-17 Thread Francesco Levorato
Hi there, removing some widgets from sfGuard forms is quite common, so you are in good company! The approach is to unset($this['permission_list']) insisde the configure method of the incriminated form. To make sure the form you are editing is being called just put a die('HERE I AM') after your

Re: [symfony-users] Custom list actions with Admin generator

2011-03-17 Thread Francesco Levorato
Hi Viktoras, could you explain better what do you want to achieve (e.g.: where you want the links to appear) and the configurations you have tried? Cheers, Francesco On Wed, Mar 16, 2011 at 4:02 PM, Viktoras char...@gmail.com wrote: Probably this is easy to solve, but I can't find the solution.

[symfony-users] Re: Service Container's Service Scope

2011-03-17 Thread Gustavo Adrian
I use this to inject the request in my services: service id=request synthetic=true / Then I can inject the request in my services. service id=myservice class=%my.class% argument type=service id=request / /service On 15 mar, 22:41, Hany El-Kerdany kerd...@gmail.com wrote: Hi All, I tried

[symfony-users] Re: Testing your Doctrine Entities and Repositories

2011-03-17 Thread Justin Fortier
I'd like to know how to do this as well. On Mar 9, 9:33 am, Don Pinkster d...@pinkster.eu wrote: I amtestingmy services (controllers) with plain PHPUnit, this all works great. But now I want to test my entities and repositories. How can I specify the environment the tests are run in with

[symfony-users] Remove header names in admin lists

2011-03-17 Thread elitalon
Hi, I would like to remove the default word Actions from the header of generated admin lists. I have searched the template it uses, and I found that there is a _list.php with this header. However, copying this file to the module templates directory and overriding it raises several errors. How

[symfony-users] [Symfony2]Forms performance

2011-03-17 Thread Costin
Hey, Running a simple Zend Controller benchmark on a simple page vs a page with a 2 fields form, the number of requests per second without the form is 4 times larger than the one with the form (56 vs 14). Is this the level of performance intended for forms? The pages in question are generated in

[symfony-users] Re: Propel behavior problem

2011-03-17 Thread Massimiliano Arione
You should definitely use Propel 1.5 It's back-compatible with Propel 1.4 and much much more developer friendly. 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

Re: [symfony-users] Re: Service Container's Service Scope

2011-03-17 Thread Hany El-Kerdany
Thanks Gustavo, Where can I read about request scope and configuration attributes like scope and synthetic, I couldn't find information in the documentation. On Thu, Mar 17, 2011 at 15:16, Gustavo Adrian comfortablynum...@gmail.comwrote: I use this to inject the request in my services:

Re: [symfony-users] Re: Service Container's Service Scope

2011-03-17 Thread Johannes Schmitt
That's because there is no documentation on these features yet; they are very advanced, and most users won't need them, so they have no priority atm. While the fix that Gustavo posted virtually disables all scope sanity checks, it should be avoided at all cost; you'll only create problems for

Re: [symfony-users] Re: Service Container's Service Scope

2011-03-17 Thread Gustavo Adrian
Ooops, I didn't know that :P. Which would be the right way to inject the request service on our own services? Should we use a Compiler pass? Thanks for clarifying this. I thought this was the right solution. Best regards. On Thu, Mar 17, 2011 at 11:54 AM, Johannes Schmitt

Re: [symfony-users] Re: Service Container's Service Scope

2011-03-17 Thread Johannes Schmitt
NP :) Unfortunately, there is no general solution, it depends. Maybe the following thread helps you: http://groups.google.com/group/symfony-devs/browse_thread/thread/a7207406c82ef07a/e2626c00f5cb9749 Kind regards, Johannes On Thu, Mar 17, 2011 at 4:01 PM, Gustavo Adrian

Re: [symfony-users] [Symfony2]Forms performance

2011-03-17 Thread Thomas Rabaix
It is not a good time to speak about performance. First the framework is not stable, and the Form component is being refactored. On 17 mars 2011, at 15:14, Costin wrote: Hey, Running a simple Zend Controller benchmark on a simple page vs a page with a 2 fields form, the number of requests

Re: [symfony-users] Re: Service Container's Service Scope

2011-03-17 Thread Gustavo Adrian
Thanks a lot for your help Johannes. It seems to be a topic more advanced than I thought, and it really depends on each use case to decide which action to take. Is there other example of a custom scope inside the framework besides the request service that I can see? so I can get a better picture

[symfony-users] Helpme config MongoDB

2011-03-17 Thread Julian Reyes Escrigas
i cant get connection i use symfony-standard PR07 autoload.php i setup namespaces Doctrine\\MongoDB Doctrine\\ODM\\MongoDB in AppKernel.php new Symfony\Bundle\DoctrineMongoDBBundle\\DoctrineMongoDBBundle() but i get Fatal Error: Interface 'Doctrine\Common\Persistence\ObjectManager' no found

[symfony-users] Jobeet day 3 load data

2011-03-17 Thread christophe thomas
I'm trying to load data from fixtures jobs.yml and categories.yml with this command: $ php symfony doctrine:data-load But the tables are empty. I have got the columns and tables created, but no data loaded. Any ideas? I have no error message and my files are correctly named with .yml I have no

[symfony-users] 'ProjectWithXsdExtensionInPhar' not found while running phpunit on my forked Symfony2 repository

2011-03-17 Thread Guillaume
Hi Symfony guys! I would like to submit a patch for Symfony2. So I followed all those steps: http://symfony.com/doc/2.0/contributing/code/patches.html Before starting to develop the patch, I ran phpunit on my forked repository. I get this error: Fatal error: Class

[symfony-users] SF2 PR7 Problemas ODM

2011-03-17 Thread César Hernández
Buenos dias tengo dos semanas tratando de hacer un pequeño proyecto utilizando ODM luego de instalar *MongoDB*, el *Driver* de Mongo y *PHPMOADMIN* para probar que funcionaba el servidor he tratado de configurar sin éxito Symfony2 entre los cambios, la poca de documentación y los ejemplos

[symfony-users] PR7 Accessing config.yml parameters variables

2011-03-17 Thread Lideln
Hi, I'm trying to use Twig, and I would like to do a simple thing : Display the parameters.title value defined in my config.yml file. I found how to display http query parameters, but not config params (the class GlobalVariables does not contain a getParameters function). Should I add a

[symfony-users] Re: Practical Symfony Jobeet Tutorial not working. slugify replaces view with the words 'Paris, France'

2011-03-17 Thread Tom W
Perhaps the problem is with the routing= This from the log. It's still matching default_index sfPatternRouting Match route default_index (/:module) for /job with parameters array ( 'module' = 'job', 'action' = 'index',) My routing.yml , it breaks if I get rid of default_index

[symfony-users] How to debug 'LogicException' with Circular Reference?

2011-03-17 Thread Marc MacLeod
Hi all, I'm getting the following error: Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection \Exception\CircularReferenceException' with message 'Circular reference detected for service doctrine.orm.default_entity_manager, path: cache_warmer - assetic.asset_manager - twig -

[symfony-users] Problem with Sending an email with a task

2011-03-17 Thread Philippe Mangé
Hi all, I am having the following error: PHP Catchable fatal error: Argument 1 passed to dmContext::createInstance() must be an instance of sfApplicationConfiguration, instance of ProjectConfiguration given, called in ... my code looks like this Somebody an idea ? protected function

[symfony-users] REST api authentication Problem

2011-03-17 Thread Laurent Fleuriot
Hi, I work under Symfony 1.4.6 and I develop a REST api based on json. The access to all web services is secure and actually I use a Http Basic Authentication. To test authentication, I has overloaded the signin function of plugin sfDoctrineGuardPlugin in which I make a redirect if the user is

[symfony-users] Variable set in action empty inside view.

2011-03-17 Thread Joeline Becker
Hello, I have something like this in my actions.class.php public function executeIndex(sfWebRequest $request) { $foo = new foo(nar); $this-js = $this-generateIndexTable($foo-bar()); } Then in my indexSuccess.php view I access the variable $js from actions.class.php as follows:

[symfony-users] O symfony 2 tem o comando de importar esquema do banco??

2011-03-17 Thread André
Boa tarde tenho um projeto, e gostaria de saber se o Symfony 2 tem a opção de importar esquema do banco de dados para ele igual o Symfony 1. E se tiver pode dizer qual é o comando e como faz? Good afternoon I have a project, and I wonder if the Symfony 2 has the option to import the database

[symfony-users] Error when creating models

2011-03-17 Thread Kévin
Hi, I'm new to Symfony, and I don't even succeed in creating valid models. I created my project - which use propel - and wrote the following schema.yml: propel: poc: id: ~ message: { type: varchar(140), required: true} author: { type:

[symfony-users] Re: Practical Symfony Jobeet Tutorial not working. slugify replaces view with the words 'Paris, France'

2011-03-17 Thread Tom W
Have rebuilt it from Day 4 5, once I change routing.yml to include job_show_user: url: /job/:company_slug/:location_slug/:id/:position_slug It then can't find the class in lib/Jobeet.class.php Perplexed :( i can ignore this and plough on but interested to know why it totally breaks the whole

[symfony-users] Symfony 2 Doctrine Database Schema imports

2011-03-17 Thread Kelvio Matias
I'm working with Symfony 2 and possess a database already exists. I wonder how to create classes it from existing stock. 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

[symfony-users] Forms and Entity Annotation Validation...

2011-03-17 Thread j_stout
Here is my paste: http://pastebin.com/9gNhD3d9 First and foremost, I love the direction S2 is going on everything. I'm just stuck at this one point and don't understand what's going on. I'm starting to think that Validation in Entity Annotations isn't the way to go. It works when I'm starting a

[symfony-users] dqlLogger (symfony, doctrine)

2011-03-17 Thread M. Nour
Hello; I'm using symfony 1.4.4 with doctrine 1.2, and I want to add a dql (or sql) logger for each query. I created a sqlLogger class with a function postExec, like this: class sqlLogger extends Doctrine_EventListener { public function postExec(Doctrine_Event $event) { // doLogging

Re: [symfony-users] Helpme config MongoDB

2011-03-17 Thread César Hernández
Instalaste... MongoDB y el Driver de Mongo para PHP Actualizaste php.ini para registrar el driver ? Creaste la carpeta /data/db ? 2011/3/18 Julian Reyes Escrigas julian.reyes.escri...@gmail.com i cant get connection i use symfony-standard PR07 autoload.php i setup

Re: [symfony-users] Re: Practical Symfony Jobeet Tutorial not working. slugify replaces view with the words 'Paris, France'

2011-03-17 Thread Francesco Levorato
Forgive the stupid question, has the cache been cleared after creating that class? Cheers, Francesco On Thu, Mar 17, 2011 at 5:32 PM, Tom W tomwallac...@gmail.com wrote: Have rebuilt it from Day 4 5,  once I change routing.yml to include job_show_user: url:

Re: [symfony-users] PR7 Accessing config.yml parameters variables

2011-03-17 Thread Christophe COEVOET
Le 17/03/2011 18:01, Lideln a écrit : Hi, I'm trying to use Twig, and I would like to do a simple thing : Display the parameters.title value defined in my config.yml file. I found how to display http query parameters, but not config params (the class GlobalVariables does not contain a

Re: [symfony-users] How to debug 'LogicException' with Circular Reference?

2011-03-17 Thread Christophe COEVOET
Le 17/03/2011 05:20, Marc MacLeod a écrit : Hi all, I'm getting the following error: Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection \Exception\CircularReferenceException' with message 'Circular reference detected for service doctrine.orm.default_entity_manager, path:

[symfony-users] How to enable MongoDB logging

2011-03-17 Thread Julian Reyes Escrigas
Hi how i can enable Query logging for Docttrine MongoDB -- Julian Reyes Escrigas Desarrollador PHP/MySQL rkmax.tumblr.com about.me/rkmax twttier.com/rokemaster github.com/rokemaster Sent with Sparrow -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: Forms and Entity Annotation Validation...

2011-03-17 Thread j_stout
Basically I just got a small understanding on a service, but still no clue how they pertain to forms. Also there is no documentation on adding validation groups via Entity Annotations, so hopefully all these things get solved one day. So if someone can guide me on how to do validation inside the

Re: [symfony-users] Variable set in action empty inside view.

2011-03-17 Thread Gábor Fási
Does the web debug bar show $js as being passed to the view? What does `var_dump($js)` echo? On Thu, Mar 17, 2011 at 05:34, Joeline Becker xxxtenderloving...@googlemail.com wrote: Hello, I have something like this in my actions.class.php public function executeIndex(sfWebRequest $request)  

Re: [symfony-users] Problem with Sending an email with a task

2011-03-17 Thread Gábor Fási
You sure you meant dmContext, and not sfContext? 2011/3/17 Philippe Mangé phili...@magicmanage.be: Hi all, I am having the following error: PHP Catchable fatal error:  Argument 1 passed to dmContext::createInstance() must be an instance of sfApplicationConfiguration, instance of

[symfony-users] Re: Problem with Sending an email with a task

2011-03-17 Thread Richtermeister
You need to call the task with a specific application (either by adding --application=whatever to the calling code, or by specifying the default application in the respective parameter). Without that, you get a project config, with it, you get an application config. The reason is that many

[symfony-users] Entity Dependancies

2011-03-17 Thread Craige
I'm wondering how a Symfony2 developer should handle Entity dependencies ie One might separate their application into 3 bundles, A, B, and C. How should one handle cross-bundle Entity dependencies? Eg - bundle A is an AuthBundle - Bundle B is a BlogBundle The BlogBundle will likely require a

[symfony-users] How do I make my fixture for a table when the primary key is also a foreign key?

2011-03-17 Thread Christopher Yee Mon
Hello, I'm building (or trying to while learning how symfony works) a site with my dev environment in Symfony 1.4, with MSSQL 2008 R2, PHP 5.2.17 and IIS 7 on Windows Server 2008 R2. I designed my schema so that there's a table (Asset) that has a one-to-many relationship to another table

Re: [symfony-users] Re: Service Container's Service Scope

2011-03-17 Thread Hany El-Kerdany
Thanks Johannes, The thread you sent is indeed very informative. Understanding scope is not an option IMHO. I expect that the answer to my question -as far as I understand- is to scope my controllers in which I want to inject the request as request-scoped services, which will not cause