[symfony-users] Re: Getting configured DBAL connection outside controller

2011-01-14 Thread Christophe COEVOET
The good solution is to define your UserProvider as a service and pass the DBAL connection (or the EntityManager if you sue the ORM) as an argument. You can also pass the complete container as an argument. Btw, you should look at https://github.com/FriendsOfSymfony/UserBundle which implements it.

Re: [symfony-users] Symfony2: doctrine:generate:entities not working?

2011-01-16 Thread Christophe COEVOET
Le 16/01/2011 18:01, jason.hanley a écrit : Hi all, I've been trying to follow the docs at http://docs.symfony-reloaded.org/master/guides/doctrine/orm/overview.html to get a model up and running for a while now with both the latest sandbox, and using the latest libraries at externals from Git.

Re: [symfony-users] [symfony2] InvalidArgumentException: [ERROR 1871] after creating project through symfony-bootstrap

2011-01-16 Thread Christophe COEVOET
Le 15/01/2011 19:54, Grzegorz Śliwiński a écrit : I've recently started to look into symfony2, and decided after checking sandbox version, that if anything helps me to learn symfony2, it would be clean project. Finally found information about symfony bootstrap, that generates clean project

Re: [symfony-users] Re: SF2 custom get methods in entity repository class

2011-01-20 Thread Christophe COEVOET
Le 20/01/2011 19:39, Venzon a écrit : I changed a bit my entity manager configuration: entity_managers: conn1: connection: conn1 mappings: HelloBundle: { type: annotation } conn2: connection: conn2 mappings:

Re: [symfony-users] [sf2] Symfony2 generic routes - automaticaly resolved controller

2011-01-22 Thread Christophe COEVOET
Le 22/01/2011 16:14, Wojciech Sznapka a écrit : Hi, how can I write routes to achieve something like generic route, which redirects to dynamically resolved controller? generic: pattern: /{_controller}/{_action} defaults: {_bundle: ExpencesBundle} I want this route to be kind of generic

Re: [symfony-users] Login directly from code

2011-01-29 Thread Christophe COEVOET
Le 29/01/2011 21:13, Michael a écrit : Is there a way to directly use the security feature to login in the PHP code? In my project (Latest Symfony2.0), I submit the login/registration using ajax when processing the data. On failure I return a string with the error and on success I login the

Re: [symfony-users] symfony2 : 3rd-party libraries

2011-01-31 Thread Christophe COEVOET
Le 31/01/2011 21:02, Adrien Mogenet a écrit : Hi everyone, I'm still learning Symfony2... I added GeSHI as a library in src/vendor/geshi. I renamed the GeSHI class to GeSHI_Displayer, as described in documentation PEAR naming usage (http://docs.symfony-reloaded.org/

Re: [symfony-users] Re: symfony2 : 3rd-party libraries

2011-01-31 Thread Christophe COEVOET
Le 31/01/2011 21:43, Adrien Mogenet a écrit : I moved the class within src/vendor/geshi/GeSHI/Displayer.php ... but nothing happened :-x Class 'Application\EbBundle\Controller\GeSHi_Displayer' If you are using this namespace, you have to autoload it according to the namespace and it has to be

Re: [symfony-users] Re: symfony2 : 3rd-party libraries

2011-01-31 Thread Christophe COEVOET
Le 31/01/2011 22:30, Adrien Mogenet a écrit : I don't understand, GeSHI is not using namespaces ! But if I use new GeSHI_Displayer, is does not work ; \GeSHI_Displayer does ! If there is no namespace it is logical. But in your previous message you talked about

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

2011-02-01 Thread Christophe COEVOET
Le 01/02/2011 20:04, Alexander Kachkaev a écrit : Hello, guys! Does anyone know how to integrate a custom doctrine mapping type into a Symfony 2 project? There is a great documentation on how to do that simply using Doctrine (http://www.doctrine-project.org/docs/dbal/2.0/en/reference/

Re: [symfony-users] Check.php date.timezone how to change it

2011-02-01 Thread Christophe COEVOET
Le 01/02/2011 22:30, Stevewa a écrit : Hope to help the newbies like me: when you run check.php and you see your timezone is not set, the INI file that you need to edit is shown on that check.php webpage above the warnings (so you don't waste time editing php.ini under cli and cgi... and after

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

2011-02-02 Thread Christophe COEVOET
Le 02/02/2011 17:52, stof a écrit : On Tue, 1 Feb 2011 16:14:58 -0800 (PST), Alexander Kachkaev alex.kachk...@gmail.com wrote: I guess there might be some global handler for all the resources. Thus the link to entity manager object could be extracted in autoload.php and everything would be

Re: [symfony-users] [symfony 2] built in plugins

2011-02-04 Thread Christophe COEVOET
Le 04/02/2011 11:57, deepak a écrit : Hi Do we have some plugin for symfony2 such as something similar to sfGuardPlugin or anything? Or we need to build in the authentication functionality from scratch for our symfony2 projects? Deepak Look at the UserBundle developped par FriendsOfSymfony

Re: [symfony-users] Re: (doctrine 1.2) The root class of the query must have at least one field selected.

2011-02-04 Thread Christophe COEVOET
Le 04/02/2011 10:07, Manu a écrit : well I was able to make it work by adding c.id in the select. But isn't this a bug ? Doctrine doesn't see that I asked for count(c.id) ? In your request, the main entity was Content. COUNT(c.id) does not select a field of Content to be able to build the

Re: [symfony-users] Symfony2 Security using Doctrine Entity

2011-02-04 Thread Christophe COEVOET
Le 02/02/2011 23:51, Justin Fortier a écrit : Hey guys, I've been having some issues defining my own Doctrine Entity class. I was able to get http-basic authentication working, and then form-login to work. Now it's just trouble getting my custom entity to work. All I get are Bad Credentials

Re: [symfony-users] [Symfony2] InvalidArgumentException: There is no extension able to load the configuration for security.config

2011-02-05 Thread Christophe COEVOET
Le 05/02/2011 23:04, phil0 a écrit : Whenever I add something to my security.config in security.yml the following exception is thrown from the YamlFileLoader loader in the DI component: InvalidArgumentException: There is no extension able to load the configuration for security.config No

Re: [symfony-users] [Symfony2] InvalidArgumentException: There is no extension able to load the configuration for security.config

2011-02-05 Thread Christophe COEVOET
Le 05/02/2011 23:07, phil0 a écrit : Okay. Thought that core bundles were enabled by default? They were until recently, right? The security has been moved to its own bundle recently. It is not in FrameworkBundle anymore. -- Christophe | Stof -- If you want to report a vulnerability issue

Re: [symfony-users] Re: [Symfony2] InvalidArgumentException: There is no extension able to load the configuration for security.config

2011-02-06 Thread Christophe COEVOET
Le 06/02/2011 00:49, Justin Fortier a écrit : Hey Christoph, I've enabled the SecurityBundle in my kernel, but I receive: The service security.context does not exist. I understand that they changed the namespace of the security component, and I've modified accordingly (I believe: use Symfony

Re: [symfony-users] Symfony2 ACL and roles

2011-02-07 Thread Christophe COEVOET
Le 07/02/2011 18:42, phil0 a écrit : Hello there How does the Symfony 2 ACL and roles interact? I've given my users a number of ACL entries to work with. However, I would like ROLE_ADMIN to have all permissions, without needing to add ACL entries for each admin user for each object. How is

Re: [symfony-users] Symfony2 ACL and roles

2011-02-07 Thread Christophe COEVOET
Le 07/02/2011 18:49, phil0 a écrit : Ah that seems reasonable. Where would I put that code? In the same place where you put your other ACL entries. You still have to define an entry for each domain object (as each domain object has its own ACE) but a single entry will do the work for all

Re: [symfony-users] Re: [Symfony2] Howto use the Security component in vPR6?

2011-02-07 Thread Christophe COEVOET
Le 07/02/2011 18:49, Justin Fortier a écrit : Hey Frenck, I had problems with this too. I moved my security.config into my config.yml, and that seemed to alleviate some problems. I also enabled the SecurityBundle in my AppKernel.php ( new Symfony\Bundle \SecurityBundle\SecurityBundle() ). there

Re: [symfony-users] [Symfony2] How to create Forms in PR6?

2011-02-07 Thread Christophe COEVOET
Le 07/02/2011 19:18, Nikita Korotaev a écrit : After updating to PR6, and reading a new piece of documentation about forms: http://docs.symfony-reloaded.org/guides/forms/overview.html I've made a separate class for my Registration form(Previously everything was in signupController). However

Re: [symfony-users] [Symfony 2] Call to a member function on a non object after updating vendors

2011-02-07 Thread Christophe COEVOET
Le 07/02/2011 20:57, ebloa a écrit : Hi After updating my Symfony 2 vendors I receive the following error on every request: Fatal error: Call to a member function set() on a non-object in /[...]/ vendor/symfony/src/Symfony/Component/Security/Http/Firewall/ ExceptionListener.php on line 165 It

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

2011-02-08 Thread Christophe COEVOET
Le 08/02/2011 21:08, jdewit a écrit : I am following the online documentation and am getting the following error in my controller. Fatal error: Call to undefined method Application\HelloBundle\Contact \ContactForm::create() in C:\xampp\htdocs\sandbox\src\Application

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

2011-02-08 Thread Christophe COEVOET
Le 08/02/2011 22:43, jdewit a écrit : Thanks for the quick reply! Just found the other thread that deals with this as well. http://groups.google.com/group/symfony-users/browse_thread/thread/ca55953f92ac004c So I updated my sandbox's Symfony vendor folder with the PR6 version, resolved some bad

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

2011-02-08 Thread Christophe COEVOET
Le 08/02/2011 23:05, jdewit a écrit : Yet another error. You have to enable the templating engines you want to use in the templating config. This is a performance optimization as it avoids loading the PHP renderer when you only want to use Twig. Look at the configuration of the sanbox for an

Re: [symfony-users] [Symfony2] Valid constraint when checking against a lazy loaded object

2011-02-09 Thread Christophe COEVOET
Le 09/02/2011 14:55, Gustavo Adrian a écrit : Hi all, I'm wondering if I'm doing the right thing regarding validation of associated entities. Suppose you have the following entities (simplified to show you my point): /** @orm:Entity */ class Country { // ..Some Fields } /**

Re: [symfony-users] Re: multiple problems with Symfony 1.4 installation - msg#00943

2011-02-09 Thread Christophe COEVOET
Le 09/02/2011 17:57, Ryan Walker a écrit : I am searching for a solution to an authentication problem and I see that Serg had the same problem (#2 below) way back in May of last year before I was on this list. As far as I can tell, no solution was posted to list. In my development

Re: [symfony-users] [Symfony 2] Doctrine:generate:entities strange behaviour in PR6

2011-02-09 Thread Christophe COEVOET
Le 10/02/2011 01:49, Nikita Korotaev a écrit : Hi everyone, I have entities mapped with Doctrine annotaions, like: /** * @orm:Id * @orm:Column(type=integer) * @orm:generatedValue(strategy=IDENTITY) */ protected $id = null; /** * @orm:Column(type=string, length=255, unique=true,

Re: [symfony-users] [symfony2] - entity manager in forms

2011-02-11 Thread Christophe COEVOET
Le 11/02/2011 20:30, jdewit a écrit : I'm trying to use the entityToIdTransformer in a form so I can populate a choiceField dynamically. Here's my code. namespace Sensio\HelloBundle\Form; use Symfony\Component\Form\Form; use

Re: [symfony-users] [symfony2] init:bundle

2011-02-12 Thread Christophe COEVOET
Le 12/02/2011 07:17, wickass a écrit : I just created an new bundle using the console init:bundle command. Works like a charm for setting up a skeleton structure for a new bundle, however I noticed that in the config/ folder it only generated a routing.xml no .php and no .yml. Is there a

Re: [symfony-users] Re: [Symfony2] How to create Forms in PR6?

2011-02-12 Thread Christophe COEVOET
Le 12/02/2011 16:29, stfalcon a écrit : I understood. Thanks ;) Do you have example this dependencies? Here is the definition of the service copied from the form.xml file in FrameworkBundle : !-- FormContext -- service id=form.context class=%form.context.class% argument type=collection

Re: [symfony-users] swiftmail 4.1 repository

2011-02-12 Thread Christophe COEVOET
Le 12/02/2011 16:51, Tac Tacelosky a écrit : Where is the latest version of swiftmail kept? The version that's included in the symfony sandbox app is 4.1, but the latest I can find on github is 4.07: https://github.com/swiftmailer/swiftmailer On the home page of the site itself, it's still

Re: [symfony-users] Symfony 1 like tasks in Symfony 2?

2011-02-13 Thread Christophe COEVOET
Le 13/02/2011 14:04, pzwosta a écrit : Hi in Symfony 1 I could add tasks by extending a sfBaseTask, provide configure and execute methods and store the class file in the tasks directory. I assume Symfony 2 has something similar. I'd guess something around the command class but no idea where to

Re: [symfony-users] [Symfony2]Problem with custom listeners

2011-02-13 Thread Christophe COEVOET
Le 13/02/2011 23:47, Yohan 'rouKs' G. a écrit : Hi all, I've got a problem with custom listener after upgrading to PR6. Here my config : services: kernel.listener.page_listener: class: Bundle\PageBundle\Listener\PageListener tags: - { name: kernel.listener

Re: [symfony-users] PR5 to PR6 Upgrade

2011-02-14 Thread Christophe COEVOET
Le 14/02/2011 19:28, Daniel Burge a écrit : Hi, Does anyone know where to find out what needs to be updated if anything to move from PR5 to PR6? Also, is there any notification that goes out when a new PR becomes available? I tried to find something by searching the user group but maybe

Re: [symfony-users] PR5 to PR6 Upgrade

2011-02-14 Thread Christophe COEVOET
Le 14/02/2011 20:25, Daniel Burge a écrit : Hi, Thanks for the responses. I didn't know about the blog so I'll monitor that from now on. On the github commits, are those immediately available in the zip file download as well? Or do those happen at some other time? Thanks, Daniel If you use

Re: [symfony-users] help with translation?

2011-02-14 Thread Christophe COEVOET
Le 14/02/2011 21:18, violyn a écrit : hi- i am trying to use translation in the twig file generated by a controller. it doesn't work (the page is generated as normal, with no translation). here are the things i have done: in app/config/config.yml i added this line: translator: { fallback: en }

Re: [symfony-users] Form validation

2011-02-15 Thread Christophe COEVOET
Le 15/02/2011 23:57, Lideln a écrit : Since I cannot add new answers to the topic I created earlier (why that ?), I create a new one here with additionnal info. As I said, I followed the official tutorial to create a RegisterForm and using it to register new members. But I got stuck at the

Re: [symfony-users] symfony2 - access everything from Entity class

2011-02-17 Thread Christophe COEVOET
Le 16/02/2011 23:00, Lideln a écrit : Hi ! I am experimenting the PR6, but I could not find how to access things from Entity just as you would do from Controller ($this- get('database_connection') or $this- get('doctrine.orm.entity_manager') and so on). It would be nice to place all static

Re: [symfony-users] [Symfony2] Get the current requested bundle's name in the View.

2011-02-21 Thread Christophe COEVOET
Le 21/02/2011 19:50, oscar balladares a écrit : Hi everybody. It may sound very weird to ask this question; but what I want to do is to create a custom navigation menu. So I want to get the current requested controller's or bundle's name not from a template but from the layout. I have to

Re: [symfony-users] Re: [Symfony2] Secure area

2011-02-21 Thread Christophe COEVOET
Le 21/02/2011 21:27, Lemmi a écrit : Now I understand all your points but it's not work anyway. I try to add an extra access control so that anonymous users can login. Accessing the login path leads to the inivite loop I mention in my post before. Here my configuration for now:

Re: [symfony-users] Weird output escaping in symfony 1.4

2011-02-22 Thread Christophe COEVOET
Le 22/02/2011 11:06, Manu a écrit : Hello, I have the following line in my code : mb_substr(strip_tags($comm-getRawValue()-comment),0,30,'UTF-8') This allows me to display only the first 30 chars of a comment. But when the comment contains an accent at that string position, the output is :

Re: [symfony-users] Re: Weird output escaping in symfony 1.4

2011-02-22 Thread Christophe COEVOET
Le 22/02/2011 11:53, Manu a écrit : I'd like to add that the comment contains the html entity (thanks tinymce!) Then you have the cause of your issue: you need an unescaped string to be able to truncate it well. If you truncate inteacute;grer to 6 characters it is logical to get intea --

Re: [symfony-users] Re: [sf2] Doctrine associations, cant understand how...

2011-02-22 Thread Christophe COEVOET
Le 22/02/2011 12:04, apm a écrit : Like this? /** * @orm: * @ManyToOne(targetEntity=Town, inversedBy=streets) */ public $town; I am try that just now, no effect. And not in docs not in other project (i trying search @ManyToOne directive on github codes) no empty @orm:

Re: [symfony-users] Re: Weird output escaping in symfony 1.4

2011-02-22 Thread Christophe COEVOET
Le 22/02/2011 12:09, Manu a écrit : Sure, but why do I get a '?' caracter if I use html_entity_decode before cutting ? And why does the html entity disapear when it isn't cut ? Use html_entity_decode with the good encoding. Your '?' character is due to the fact your 'é' character is in another

Re: [symfony-users] [Symfony2] Generate application

2011-02-22 Thread Christophe COEVOET
Le 22/02/2011 15:38, Tipoun a écrit : Hello, I am a Symfony1 user. Today, I try Symfony2 but I don't understand how to create an application when I use source code from https://github.com/symfony/symfony I know there is a sandbox, but I would like to know how to create an application from

Re: [symfony-users] [Symfony2] Generate application

2011-02-22 Thread Christophe COEVOET
Le 22/02/2011 16:43, Alex Potter a écrit : On Tuesday 22 Feb 2011 14:44:03 Christophe COEVOET wrote: https://github.com/Garfield-fr/Symfony2Project which setup a project using git submodules for the vendors Unfortunately, that URL returns a 500 error: Initialized empty Git repository in /home

Re: [symfony-users] no user-token after login

2011-02-22 Thread Christophe COEVOET
Le 22/02/2011 16:52, Florian Semm a écrit : hi, i have no access to the user-token when i calling the 'security.context'. the logger says that a user has logged in successfully and there are also data in the session The context is not shared between the different firewalls by default so you

Re: [symfony-users] Re: Symfony PR6 (github 22.02.2011) doesn't work doctrine:generate:entities

2011-02-23 Thread Christophe COEVOET
Le 23/02/2011 19:24, Кирилл Кокоша a écrit : Thanks! It's realy help. I sew it, but I think, it's for configurating DB from php file, but I configured it from yml. Does you YAML filename match the fully qualified class name of your entity (using . as a separator) ? This is needed for Doctrine.

Re: [symfony-users] How to handle 404 and 500 Errors in Symfony 2?

2011-02-23 Thread Christophe COEVOET
Le 23/02/2011 20:22, Zap a écrit : Hi, 1) I wonder, how to define template for 404 or 500 errors? - is it documented somewhere yet, because I could not find it? The doc about this has been written today and is available here:

Re: [symfony-users] Re: How to handle 404 and 500 Errors in Symfony 2?

2011-02-23 Thread Christophe COEVOET
Le 23/02/2011 21:58, oscar balladares a écrit : Holly SH**T! There is a lot different (more detailed) information in the /master/guides!!! Im feeling like in Super Mario World when you find a secret place! Thanks for this info!!! The doc under /master/ contains the latest version of the doc.

Re: [symfony-users] Re: [PR6] ACL

2011-02-23 Thread Christophe COEVOET
Le 23/02/2011 22:09, Кирилл Кокоша a écrit : I have latest version from github, and my config sems like: doctrine: dbal: driver: pdo_mysql dbname: dbname user: user password: pass security: acl: connection: default try to change. The subject says he uses

Re: [symfony-users] [symfony2] SecurityBundle: logout configuration question

2011-02-23 Thread Christophe COEVOET
Le 23/02/2011 23:46, olimination a écrit : Hello, I have started to do a simple webapp with the new Symfony2(with sandbox version commit 1fc745d). I have added the SecurityBundle for authentication and somehow the logout configuration seems to work in a special way or maybe I don't

Re: [symfony-users] Re: EntityChoiceField : two issues

2011-02-24 Thread Christophe COEVOET
Le 24/02/2011 11:12, Lideln a écrit : The container cannot be accessed from the view. What about $view-container Unless you achieve accessing protected properties outside the class it does not work. -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please

Re: [symfony-users] [Symfony 2] - Dependency Injection Component - documentation?

2011-02-24 Thread Christophe COEVOET
Le 24/02/2011 20:24, Richard Fullmer a écrit : First, I'd like to say that I think the symfony 1 dependency injection component has completely changed the way I think about writing testable code. It's fast, fantastic, and well documented. I've been awaiting such documentation for the Symfony

Re: [symfony-users] [Symfony2] Responding with a template at core.exception

2011-02-25 Thread Christophe COEVOET
Le 25/02/2011 22:07, Alexander Kachkaev a écrit : Hi everyone! My question is regarding generating responces at core.exception event. I would like to make my own global custom exceptoin handler. I have implemented a listener which looks like this: class MyListener { public function

Re: [symfony-users] Re: [Symfony 2] Adding custom labels to form fields

2011-02-27 Thread Christophe COEVOET
Le 27/02/2011 21:03, Justin Fortier a écrit : I too found form labels counter intuitive. It would seem it should be easy to override the default label by passing in the option 'label'. Perhaps I'll fork symfony2 implement the changes and do a pull request. There is currently a proposal to

Re: [symfony-users] [Symfony2] Translations custom loader

2011-02-27 Thread Christophe COEVOET
Le 26/02/2011 11:26, MrEnirO a écrit : Hey. I am trying to create a custom Translations loader. According to http://docs.symfony-reloaded.org/guides/translation.html i have created my class and configured it, but how do i tell translator to use my custom loader??? And how does it decide what

Re: [symfony-users] Re: doctrine dbal connection

2011-02-27 Thread Christophe COEVOET
Le 27/02/2011 01:01, igniteflow a écrit : I'm having the same issue. I'm using the sandbox and have been following the http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html tutorial, but am getting the doctrine.dbal.default_connection must be defined. Which version of the

Re: [symfony-users] Re: [Symfony 2] Adding custom labels to form fields

2011-02-28 Thread Christophe COEVOET
Le 28/02/2011 04:38, oscar balladares a écrit : The current way is fine for me. I think Labels should go on the View, and be references through the corresponding field's name. Setting the label inside the Form component is what I hated about Symfony 1.x. Lets say the layout desinger tell us

Re: [symfony-users] [symfony2] EntityToIDTransformer and xxxTranformer in PR6

2011-02-28 Thread Christophe COEVOET
Le 28/02/2011 22:16, oscar balladares a écrit : Hi everybody. I realize that in PR6 there is no Symfony\Bundle\DoctrineBundle\Form\ package-namespace So it is impossible to me to bind Forms to Entities and flush them into the database. According to Docs, you should use

Re: [symfony-users] [symfony2] EntityToIDTransformer and xxxTranformer in PR6

2011-02-28 Thread Christophe COEVOET
Le 28/02/2011 22:32, oscar balladares a écrit : Before anything, thanks a lot... This is amazing, I was covering the guide and I saw the EntityChoiceField, but for some reason I decided to try the Transformers (not the movie Plop! - a terrible joke :( And I thought it was the only way.

Re: [symfony-users] Re: doctrine dbal connection

2011-03-01 Thread Christophe COEVOET
Le 28/02/2011 16:08, Nico a écrit : On 27 Feb., 21:28, Christophe COEVOETs...@notk.org wrote: Le 27/02/2011 01:01, igniteflow a crit : I'm having the same issue. I'm using the sandbox and have been following thehttp://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html tutorial,

Re: [symfony-users] [Symfony 2] Latest symfony 2 (2011/03/02): Uncaught exception 'InvalidArgumentException' with message 'Route _wdt does not exist

2011-03-02 Thread Christophe COEVOET
Le 02/03/2011 18:43, Gustavo Adrian a écrit : Hi all! I've updated my symfony 2's copy to the latest one. I've updated all the major changes. I have only one problem, and it happens only on the dev environment. On every page I get this: Fatal error: Uncaught exception

Re: [symfony-users] [Symfony 2] A way to load fixtures in a user defined order, taking into account associations?

2011-03-02 Thread Christophe COEVOET
Le 02/03/2011 18:47, Gustavo Adrian a écrit : Hi everyone, I'd like to know if there's a way to load fixtures from different bundles in order (without calling explicitly doctrine:data:load for each bundle by hand). I create the bundle's instances (in the registerBundles method on my

Re: [symfony-users] [Symfony 2] A way to load fixtures in a user defined order, taking into account associations?

2011-03-02 Thread Christophe COEVOET
Le 02/03/2011 19:00, Gustavo Adrian a écrit : Yes, but my problem is the order in which they're loaded. Suppose I have: . Layout . Page (Has an association ManyToOne with Layout) In this case, if the fixtures from Page are loaded before the Layout ones, it would throw a constraint exception,

Re: [symfony-users] [Symfony 2] A way to load fixtures in a user defined order, taking into account associations?

2011-03-02 Thread Christophe COEVOET
Le 02/03/2011 19:06, Alex Pilon a écrit : I do not know very much about symfony2 at the moment, however in symfony 1 if you load a directory of fixtures in a single command such as symfony doctrine:data-load data/fixtures/pages.yml data/fixtures/layout.yml it doesn't matter what order you

Re: [symfony-users] [Symfony 2] A way to load fixtures in a user defined order, taking into account associations?

2011-03-03 Thread Christophe COEVOET
Le 03/03/2011 05:45, Gustavo Adrian a écrit : Actually playing around with the interface I've noticed that the order is numbered. Given that my app actually has not a fixed number of bundles (and, for instance, of fixtures), I had to look for another way of ordering, because this way I can't

Re: [symfony-users] [Symfony2] How to use the remember_me option in user authentication

2011-03-03 Thread Christophe COEVOET
Le 03/03/2011 12:57, Marc Cerrato a écrit : Hi there, I have been trying to use the remember_me option when authenticating a user (form_login authentication). Everything seems to work since the response header includes a 'set-cookie' with the corresponding REMEMBERME cookie, but it doesn't

Re: [symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-03-07 Thread Christophe COEVOET
Le 07/03/2011 15:46, Javier Garcia a écrit : http://trac.symfony-project.org/ticket/8171 what to do when someone has assigned a ticket since 1 year and it has not been resolved or deleted? Assigning the tickets to fabien is the default behavior of the issue tracker so this is not really an

Re: [symfony-users] Re: User Authentication

2011-03-07 Thread Christophe COEVOET
Le 07/03/2011 16:18, Donald a écrit : Hi Roger, Thanks for the response. I do have the _username and _password fields in my form, and the action of the form is pointing to the _security_check route. I'm using the Doctrine UserProvider. I have tried the routing config without the controller,

Re: [symfony-users] Re: User Authentication

2011-03-07 Thread Christophe COEVOET
Le 07/03/2011 21:24, Donald a écrit : Christophe, Thanks for the response. I'm aware that there are certain features missing from my example above. But I'm trying to keep this test case very limited so I can concentrate on the problem at hand; being that the check authentication is not

Re: [symfony-users] Security.yml just ignored...

2011-03-08 Thread Christophe COEVOET
Le 07/03/2011 21:34, Thecrusty a écrit : Hi i just downloaded the Symfony 2 PR7 and i am just wondering why mit project simply ignores the content off my app/config/security.yml file. I can just fill it with rubbish, but Symfony does not complain... Do i have to link this file into my

Re: [symfony-users] [S2 pr7] generating entities classes from converted yml files

2011-03-08 Thread Christophe COEVOET
Le 08/03/2011 07:52, Jean-Michel Schelcher a écrit : Hi, I converted an Doctrine 1 database to some .yml schema files. How can I generate entities files (classes) from them ? I generated a bundle, put that files into /Resources/config/doctrine/metadata/orm/, renamed as the bundle name et

Re: [symfony-users] Symfony 2 and MSSQL

2011-03-08 Thread Christophe COEVOET
Le 08/03/2011 13:16, Tomas a écrit : Hello!! I will need to connect to a MSSQL server DB in my next (first) Symfony 2 project, which ORM should I use / is best prepared to work with MSSQL (probably sql server 2005) ? propel or doctrine? Thanks! When using Symfony2 you should really use

Re: [symfony-users] [Symfony2] Can't display the debug toolbar on custom bundle

2011-03-08 Thread Christophe COEVOET
Le 08/03/2011 15:36, fa a écrit : My page is well displayed but there is no tool bar Any ideas? Does your page contains well-formed HTML ? If not it is totally normal as the WDT is only injected when a /body tag is found. This is needed to avoid duplicating it when using ESI. --

Re: [symfony-users] [symfony2][pr7] - MongoDb config

2011-03-08 Thread Christophe COEVOET
Le 08/03/2011 22:37, jdewit a écrit : Getting the error: Fatal error: Interface 'Doctrine\Common\Persistence\ObjectManager' not found in /var/www/symfony-standard/vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php on line 49 config.yml doctrine_mongo_db: server:

Re: [symfony-users] [Symfony2 PR7] - Document mapping in extended bundles

2011-03-08 Thread Christophe COEVOET
Le 09/03/2011 02:58, jdewit a écrit : I've looked at other extended bundles like in lichess and the thing to do seems to be to use xml mapping in the base bundle and annotations for extra fields in the extended bundle. Is this the suggested way of things? I experimented with using xml

Re: [symfony-users][symfony2][pr7]REST bundle XML error

2011-03-09 Thread Christophe COEVOET
Le 08/03/2011 23:26, Mark C a écrit : I'm trying to use EverzetRestfulControllersBundle, using the updated fork by sheknows here: https://github.com/sheknows/EverzetRestfulControllersBundle, however I get the following error: Fatal error: Uncaught exception 'InvalidArgumentException' with

Re: [symfony-users] [Symfony2] Overriding Bundle Templates doesn't work

2011-03-09 Thread Christophe COEVOET
Le 02/03/2011 11:33, Brocco a écrit : Hello, I'm writing a bundle for symfony2 and I would like to override some of its template in my app. I tried doing what's written in the doc there: http://docs.symfony-reloaded.org/master/guides/templating.html#overriding-bundle-templates But it doesn't

Re: [symfony-users] How to use the Zend Logger?

2011-03-10 Thread Christophe COEVOET
Le 09/03/2011 17:35, Nicolas Wormser a écrit : It might look like a pure noob question but I can't manage to set personnal messages into my dev.log from a controller (or whatever). I tried things like $this-logger-info(message); in a controller to no avail… Also tried to include the logger

Re: [symfony-users] Re: FOS\UserBundle setup problems (Unable to create user)

2011-03-10 Thread Christophe COEVOET
Le 10/03/2011 14:00, coolmec33 a écrit : Hello, i have exactly the same problem. did you resolved it ?? Thanks This issue only occurs when FOSUserBundle is registered before SecurityBundle in the kernel. So a workaround waiting we change the implementation is to register SecurityBundle

Re: [symfony-users] [Symfony2 pr7] - doctrine:generate:repositories error

2011-03-10 Thread Christophe COEVOET
Le 10/03/2011 18:09, Jonathan Wage a écrit : Can we see your ORM mappings configuration? - Jon On Thu, Mar 10, 2011 at 2:38 AM, jdewit jorisdewitblackbe...@gmail.com mailto:jorisdewitblackbe...@gmail.com wrote: I get the error. [RuntimeException] Repository

Re: AW: [symfony-users] How to activate Doctrine Extensions in Symfony 2 (PR 7)

2011-03-11 Thread Christophe COEVOET
Le 11/03/2011 19:42, Juergen Kober a écrit : I guess that means, there's no easy way to use Doctrine extensions with Symfony 2 (PR7) right now or in the near future? Thanks for the answer. There is: just get the master branch of the Doctrine repo instead of the 2.0.x one and it will work. --

Re: [symfony-users] Re: DoctrineBundle no longer recognized my DBAL config

2011-03-11 Thread Christophe COEVOET
Le 12/03/2011 00:09, oscar balladares a écrit : Oh! I didnt know, thanks for the tip. I'll look after that repo 2011/3/11 Christophe COEVOET s...@notk.org mailto:s...@notk.org Le 11/03/2011 23:33, oscar balladares a écrit : It is a shame that Docs are not sync with the changes

Re: [symfony-users] SF2 PR7 STD - Implementation MongoDB

2011-03-12 Thread Christophe COEVOET
Le 12/03/2011 17:02, César Hernández a écrit : Good morning Yesterday is testing the standard version PR7 at first I mistook it 1 .- did not come with vendor There is a tarball with the vendors on the symfony.com website and another one without them. If you use the git repo you need to run the

Re: [symfony-users] Including 3rd party classes

2011-03-12 Thread Christophe COEVOET
Le 12/03/2011 22:51, pzwosta a écrit : Hi, I try to include a 3rd party (Zend) class. The directory structure is like that: \vendor \name \lib \name Class.php (includes class Name_Class) \Subdir

Re: [symfony-users] [Symfony2][FrameworkExtraBundle] Several routes to one action

2011-03-14 Thread Christophe COEVOET
Le 14/03/2011 10:03, Nikita Korotaev a écrit : My bundle with annotation routing is for personal application. Why it encourages to use xml in routings for shared bundles? XML is validated throuch XSD. And the annotations for the routing are not a core feature. You need a third-party bundle

Re: [symfony-users] missing sandbox

2011-03-14 Thread Christophe COEVOET
Le 14/03/2011 15:17, Faltu Email a écrit : http://symfony.com/doc/2.0/quick_tour/the_big_picture.html where can I download the sandbox. the page does not exist anymore. The sandbox has been replaced by the standard edition which is available on the symfony.com website. -- Christophe | Stof

Re: [symfony-users] SF2 PR7 STD - Implementation MongoDB

2011-03-15 Thread Christophe COEVOET
Le 15/03/2011 11:47, César Hernández a écrit : Greetings Continuous truly lost with the implementation of MDGs I'm trying to do a simple test MongoDB finished making a new copy of the standard version of symfony2 run ./bin/vendor.sh ./bin/build_bootstrap.php I added in AppKernel.php new

Re: [symfony-users] [Symfony2] How to create a shared service?

2011-03-15 Thread Christophe COEVOET
Le 15/03/2011 16:38, Gustavo Adrian a écrit : Hi all, I tried to configure a service with the attribute shared but when I use it, it throws an error. I saw in the DIC's docs that this is the attribute I should use to make a service shared. How can I do this in Symfony 2? This was an old

Re: [symfony-users] [Symfony2] Services scoping question

2011-03-16 Thread Christophe COEVOET
Le 17/03/2011 02:08, Gustavo Adrian a écrit : Using strict=false in all the references to services with scope=prototype seems to ignore the problem, as suggested by the exception. The thing is that I still don't understand what could be the problem in this case. Maybe I'm doing something wrong

Re: [symfony-users] [Symfony2] Services scoping question

2011-03-16 Thread Christophe COEVOET
Le 17/03/2011 04:02, Gustavo Adrian a écrit : Hi Christophe, But having a container-scoped service (module) that has either a container-scoped service service or a prototype-scoped service service is the same thing, and is valid in both cases, at least in this particular case, as my module

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:

Re: [symfony-users] InvalidArgumentException with message 'The parameter kernel.container_class must be defined.'

2011-03-18 Thread Christophe COEVOET
Le 18/03/2011 17:01, Otávio a écrit : Hi all, I have symfony installation as a submodule in my git repository. I have updated it today, then now, when I try run console I have the follow error message: You need to rebuild your bootstrap file with the bin/build_bootstrap.php file each time

Re: [symfony-users] Symfony2: Getting action/route name in template

2011-03-18 Thread Christophe COEVOET
Le 06/02/2011 22:13, Michal_V a écrit : Hi, What is the correct way to get action and route name in a template in Symfony2? (PHP and Twig syntax). Thanks the Request object is available through the app variable which give access to the route name and the controller name. Twig:

Re: [symfony-users] [Symfony2] Security ACL question

2011-03-21 Thread Christophe COEVOET
Le 21/03/2011 20:11, Gustavo Adrian a écrit : Hi all, I'm starting to implement the ACL feature on my app and, for what I''ve read and what I've already implemented, I must say: it's BEAUTIFUL. Great job guys. It's just what I was looking for :) I have one question about this wonderful

Re: [symfony-users] Re: Assetic use_controller causes SQLite3Stmt::execute() to fail in Symfony/Component/HttpKernel/Profiler/SqliteProfilerStorage.php

2011-03-21 Thread Christophe COEVOET
Le 21/03/2011 23:02, Gabriele Genta a écrit : I am experiencing the same issue, but in a different context. I'm using a symfony2 application as a backend for a Flex client, so that it essentially implements a bunch of webservices. Every time I make two simultaneous requests to the server I get

  1   2   3   4   >