[symfony-users] Re: User authentication and session persistence problem

2011-01-29 Thread Johannes
This behavior has been changed in the HEAD revision. Kind regards, Johannes On Jan 28, 4:51 pm, DisTurBinG wrote: > I agree, I just ran into this problem as well and noticed the same > thing.  Thanks to your post! > > I don't understand why it was designed to authenticate with > __toString() isn

[symfony-users] Re: Login directly from code

2011-01-29 Thread Johannes
In this case, you can implement your own AuthenticationSuccessHandler, and AuthenticationFailureHandler. You find the interfaces in Component/ Security/Http/Authentication/. When you have wired these handlers with the DIC, you can set them in the configuration as follows: security.config: fir

[symfony-users] Issue with retrieving MongoDB records

2011-01-29 Thread livingstn
I have set up the Symfony 2 sandbox and am having a bit of trouble retrieving records from MongoDB. I created a basic User object with firstName, lastName, and email. I can insert records just fine, but when I run: $dm = $this->get('doctrine.odm.mongodb.document_manager'); $dm->getRepository('Sit

Re: [symfony-users] Please advise about Symfony2 Validation and Doctrine ODM/ORM

2011-01-29 Thread Vladimir Razuvaev
Hi Bernhard, Thanks for clarifications. But as far as I understand explicit change tracking policy or detaching invalid entity from entity manager will workaround this problem? Vladimir /// -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-proje

Re: [symfony-users] Re: "No Metadata Classes to process" error while running doctrine:schema:create command

2011-01-29 Thread taidehuone
Out of my experience I can't think of any real reason why that wouldn't work. The entity file itself looks like any other entity file I've written so the problem shouldn't be there. Have you triple checked the namespaces so that it doesn't say MyBundle in your config.yml and AffiliateStoreBundle in

[symfony-users] Re: (PR5) Int & Integer constraints

2011-01-29 Thread DisTurBinG
I did not notice that IntegerField versus TextField, I glanced over all of the field the night before I started it in the morning. I will have to keep an eye on those field types next time ;). Thanks for your replies and information, hopefully more prominent questions will be coming out of me in

[symfony-users] Re: [symfony2] User authentication and session persistence problem

2011-01-29 Thread DisTurBinG
I agree, I just ran into this problem as well and noticed the same thing. Thanks to your post! I don't understand why it was designed to authenticate with __toString() isntead of getUsername() I believe that getUsername should be the standard for the authentication as an obvious. To String was

[symfony-users] Jobeet Day 14. feed problem, requesting layer.atom.php

2011-01-29 Thread Jānis Gruzis
Problem is, after clicking feed link for each group, server, after managing showSuccess.atom.php and _list.atom.php tries to access layer.atom.php and dosent open a feed page for me. Since there is no layer.atom.php, server returns error code 500. What could be solution for this problem? What reas

[symfony-users] Symfony2 Bundles for Textmate Twig

2011-01-29 Thread Julian Reyes Escrigas
Hi anyone use textmate and have or knows about a bundle for colorize twig sintax :) thanks for your helping -- Julian Reyes Escrigas Desarrollador PHP/MySQL -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this mess

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 user

[symfony-users] Login directly from code

2011-01-29 Thread Michael
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 user and return "true" which call a redirect

[symfony-users] Re: German umlauts not retrieved correctly from db

2011-01-29 Thread pzwosta
Finally after some hours of debugging I found out. As easy as could be. Just add the pdo options parameter PDO::MYSQL_ATTR_INIT_COMMAND (=1002) with value SET NAMES utf8 in app/config/config.yml. ## Doctrine Configuration doctrine.dbal: driver: PDOMySql dbname: mydb user:

[symfony-users] Re: "No Metadata Classes to process" error while running doctrine:schema:create command

2011-01-29 Thread Damon Jones
I think your problem is one of namespaces (assuming you have cut-and- pasted correctly). You said: "I have created an entity class Application\MyBundle\Entity \Product.php" and yet in that entity class file, the namespace is: "namespace Application\AffiliateStoreBundle\Entity;" Hope this helps.

Re: [symfony-users] detect the right object

2011-01-29 Thread Stéphane
foreach ($hotels as $hotel) { if ($hotel*->getRawValue()* instanceof BookingComHotelsPromoteCountry) Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Sat, Jan 29, 2011 at 5:08 PM, Sela wrote: > I use the s

[symfony-users] detect the right object

2011-01-29 Thread Sela
I use the symofny and iterating object i have this problem when running the following code foreach ($hotels as $hotel) { if ($hotel instanceof BookingComHotelsPromoteCountry) $hotel itself is wrapped by symfony so only inside the value is actually the BookingComHotelsPromoteCountry, what is

Re: [symfony-users] Redirect URL does not work

2011-01-29 Thread Alan Candido
Hello Felix, Try url_for('@redirect', arry("url",'.urlencode('http://symfony-project.org '))) 2011/1/29 Felix E. Klee > I set up a redirect-page for a Symfony 1.x project. > > Rule: > > redirect: >url: /:sf_culture/redirect/:url >param: { module: main, action: redirect } > > Then, to c

[symfony-users] Redirect URL does not work

2011-01-29 Thread Felix E. Klee
I set up a redirect-page for a Symfony 1.x project. Rule: redirect: url: /:sf_culture/redirect/:url param: { module: main, action: redirect } Then, to create the URL of the redirect page, I tried something like: url_for('@redirect?url='.urlencode('http://symfony-project.org')) This