Re: [symfony-users] I recently upgraded to a new install.

2011-01-20 Thread Gábor Fási
1.4 includes swiftmailer, 1.2 did not, so the programmer most likely installed it as a plugin. Disable that plugin and update your mail-related code to use the built-in method. For details, check the mailer chapter of the book. On Jan 19, 2011 6:56 PM, Llew melinko2...@gmail.com wrote: -- If you

Re: [symfony-users] I recently upgraded to a new install.

2011-01-20 Thread Gareth McCumskey
You could also download the symfony 1.2 library and install that into the project that needs it then change the ProjectConfiguration.class.php file to point at your manually installed library instead of using the PEAR one. In fact, this is the recommended method for using symfony with projects as

Re: [symfony-users] I recently upgraded to a new install.

2011-01-20 Thread Justen Doherty
I agree with Gareth, to quote Big Lebowski You're entering a world of pain if you try to debug a later framework version! On Thu, Jan 20, 2011 at 9:23 AM, Gareth McCumskey gmccums...@gmail.comwrote: You could also download the symfony 1.2 library and install that into the project that needs it

[symfony-users] symfony cache doubt

2011-01-20 Thread Shihab KB
Hi, I would like to add caching feature to my restful webservices. I am planning to use the default caching mechanism provided by the symfony. For that I have changed the cache.yml as given below, enabled: on with_layout: true lifetime: 900 client_lifetime: 0 And set cache:

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

2011-01-20 Thread Venzon
Thank you for answer, I see now where is a difference. I have my custom repository for Test entity generated by framework (using annotations) in /Application/HelloBundle/Repositories/Test.php When I call it from controller by: $this- get('doctrine.orm.entity_manager')-getRepository(Application

[symfony-users] getDql(): aliases as expected, getSqlQuery(): aliases different!?

2011-01-20 Thread johnnygri
Hi there, currently having troubles inside a fairly simple preDqlSelect(), defined inside a record listener. I've followed the Doctrine documentation, using the code below I'm getting a Doctrine_Connection_Mysql_Exception that reads: Column not found: 1054 Unknown column 'a.publish_until' in

[symfony-users] Re: symfony cache doubt

2011-01-20 Thread Gabriel Petchesi
Eliminate the user key from the URL: http://10.1.12.123/hysa/restful.php/news/1/en/newscategorieshttp://10.1.12.123/hysa/restful.php/news/1/en/user3/newscategories gabriel -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Re: getDql(): aliases as expected, getSqlQuery(): aliases different!?

2011-01-20 Thread johnnygri
I've just removed the IF() clause and redefined it using a combination of standard boolean comparisons, now the aliases are correct in both the DQL and SQL. Possible new Doctrine bug here Jonathan? -- If you want to report a vulnerability issue on symfony, please send it to security at

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

2011-01-20 Thread Venzon
@stof: As you guys mentioned before; when I call entity repository by: $this-get('doctrine.orm.entity_manager')- getRepository('HelloBundle:Test') I retrieve default repository where only magic finders are present, no custom ones. How can I call then custom

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

2011-01-20 Thread stof
On Thu, 20 Jan 2011 04:09:24 -0800 (PST), Venzon luk...@gmail.com wrote: @stof: As you guys mentioned before; when I call entity repository by: $this-get('doctrine.orm.entity_manager')- getRepository('HelloBundle:Test') I retrieve default repository where only magic finders are present, no

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

2011-01-20 Thread Venzon
When I use fully qualified class name $this- get('doctrine.orm.entity_manager')- getRepository('Application\HelloBundle\Repository\Test') I get error: Class Application\HelloBundle\Repository\Test is not a valid entity or mapped super class. My repository class looks like this: ?php namespace

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

2011-01-20 Thread stof
On Thu, 20 Jan 2011 04:27:01 -0800 (PST), Venzon luk...@gmail.com wrote: When I use fully qualified class name $this- get('doctrine.orm.entity_manager')- getRepository('Application\HelloBundle\Repository\Test') I get error: Class Application\HelloBundle\Repository\Test is not a valid entity or

[symfony-users] Re: symfony cache doubt

2011-01-20 Thread Shihab KB
that is not possible as we need to authenticate the user by using the usertoken any other methods? On Jan 20, 4:24 pm, Gabriel Petchesi pghora...@gmail.com wrote: Eliminate the user key from the

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

2011-01-20 Thread stof
On Thu, 20 Jan 2011 04:40:04 -0800 (PST), Venzon luk...@gmail.com wrote: I am testing with mutiple db connections, my config.yml looks like this: doctrine.orm: auto_generate_proxy_classes: %kernel.debug% auto_generate_hydrator_classes: true auto_generate_proxy_classes: true

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

2011-01-20 Thread Venzon
What will be proper config solution when I have entities connecting with several databases in same 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

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

2011-01-20 Thread stof
On Thu, 20 Jan 2011 04:58:50 -0800 (PST), Venzon luk...@gmail.com wrote: What will be proper config solution when I have entities connecting with several databases in same bundle? If you need to put sme entities in a database and some others in another database the proper configuration would be

[symfony-users] Re: After installing sfPropel15Plugin: error when i try to build classes

2011-01-20 Thread ferdjuan
That fixed it for me thanks, I also found the same fix Francois posted: http://www.phpforum.com.ar/index.php?action=printpage;topic=300.0 -- 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

[symfony-users] Re: Grails to Symfony2 Benchmark

2011-01-20 Thread Johannes
My guess is that he didn't enable APC cache for doctrine metadata, and that can make quite a difference. On Jan 19, 6:15 pm, Gareth McCumskey gmccums...@gmail.com wrote: Lies, damned lies and benchmarks  (To mangle a popular phrase) On Wed, Jan 19, 2011 at 4:27 PM, Tom Boutell

[symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread cestcri
Hi Gustavo and Bernhard, thanks for sharing your approach. This thread seems to be the most comprehensive guide to custom validators with Symfony2... nevertheless, I unfortunately don't manage to call my custom validator. Maybe things changed since then, I am currently working with PR5 (directly

Re: [symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread Bernhard Schussek
2010/11/24 Ases j...@atzeneta.es: From annotations works fine, but how I would have to call it from validation.yml? #Application/MyBundle/Resources/config/validation.yml Application\MyBundle\Entity\Anything:  getters:    address:      - NotBlank: ~      - IpAddress: ~ BTW, you can now

[symfony-users] Extra var in sfPropelRoute

2011-01-20 Thread HAUSa
Is it possible in an sfPropelRoute to include extra parameters in the URL, that doesn't correspond to the object? For example, my object: item: id title slug message created_at updated_at This is a correct sfPropelRoute url: topic_show: url: /part1/:slug class:

[symfony-users] What are the URL for the pages using PropelPager ?

2011-01-20 Thread Javier Garcia
Hi, I have an action with this code: $c = new Criteria(); $c-addJoin(sfGuardUserProfilePeer::USER_ID, sfGuardUserGroupPeer::USER_ID, Criteria::INNER_JOIN); $c-add(sfGuardUserGroupPeer::GROUP_ID, 2 ); $this-pager = new PropelPager($c, 'sfGuardUserProfilePeer', 'doSelect', $page = 2, $rowsPerPage

[symfony-users] Auto populate a field in Symfony admin generator

2011-01-20 Thread Manu
I'm creating my own blog engine to learn Symfony, and I have a question : In the generated administration pages, I have a drop-down list of authors, to indicate the author_id. I'd like to hide that drop-down list, and set the author_id to the id of the current logged-in user. How can I

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

2011-01-20 Thread Venzon
@stof: My orm mapping config can be a problem indeed, I will try to work on it and will report back I really have hard time because I have to use multiple databases and that makes all config things hard, especialy when many aspects of SF2 are new to me :( -- If you want to report a

[symfony-users] Re: symfony cache doubt

2011-01-20 Thread Gabriel Petchesi
Set up a custom cache key for the given page that does not include that information. Look for documentation about sf_cache_key here: http://www.symfony-project.org/gentle-introduction/1_4/en/12-Caching gabriel -- If you want to report a vulnerability issue on symfony, please send it to

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

2011-01-20 Thread Venzon
I did test and removed multiple entity managers leaving only one: doctrine.orm: mappings: HelloBundle: ~ I am still getting same error telling me: Class Application\HelloBundle\Repository\Test is not a valid entity or mapped super class. Maybe I lack some annotations or

[symfony-users] Routing: different character between vars

2011-01-20 Thread HAUSa
Is it possible to use other characters in a route, except only the slash (/)? For example, I want to use the dash (-): This works: (1) /myroute/:slug/:id Instead I want: (2) /myroute/:slug-:id This results in: (1) /myroute/my-item/56 (2) /myroute/my-item-56 -- If you want to report a

Re: [symfony-users] Routing: different character between vars

2011-01-20 Thread stof
On Thu, 20 Jan 2011 06:59:59 -0800 (PST), HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is it possible to use other characters in a route, except only the slash (/)? For example, I want to use the dash (-): This works: (1) /myroute/:slug/:id Instead I want: (2)

[symfony-users] Re: Auto populate a field in Symfony admin generator

2011-01-20 Thread s.rohweder
I'd like to hide that drop-down list, and set the author_id to the id of the current logged-in user. I dont have an installation here but you can do it as follows: - in the formclass from you object get the user object via the options from the logged in user. - overwrite the widget for the

[symfony-users] Still looking for a Symfony Designer

2011-01-20 Thread lbike
I am looking for someone who can create a site from scratch in Symfony and make small changes like buttons and favicons to more difficult builds/changes like memberships and affiliate programs. -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: Functional Test : click....

2011-01-20 Thread benM
Hi Benoit, There's a mistake, it's not 27 but 22, because if you did exactly what Jobeet said, you have and 22 more... On 14 jan, 13:32, benoitW interact...@gmail.com wrote: I have to say it works fine when I replace that number 27 by 'Programming'... On 14 jan, 12:03, benoitW

[symfony-users] What's the difference between embedForm and embedRelation ?

2011-01-20 Thread ma89a2
What's the difference between embedForm and embedRelation ? Both show the form. So what are the advantages or needs to use one or another ? 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

[symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread cestcri
Hi Bernhard, thanks for your quick reply. Here is what I have: The validation setup in the entity class /** * @var text $locationName * @myvalidation:Location(property=locationName, message=Geocoding of location failed!) */ private $locationName; The setup in config.yml

Re: [symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread Bernhard Schussek
Could it be that the namespace definition of your Location class is wrong? -- 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

[symfony-users] Re: Custom validator is not called on validation

2011-01-20 Thread cestcri
Stop, the error is found... I defined the wrong namespace for my constraint class! Replacing namespace Symfony\Component\Validator\Constraints; by namespace Application\RsBundle\Component\Validator\Constraints; solved the problem. Sorry for bothering you... and have a nice day, Christian

[symfony-users] Re: symfony cache doubt

2011-01-20 Thread Shihab KB
Thanks for your answer.. I read the link. But unfortunately I didn't from it. Could please explain more? On Jan 20, 7:48 pm, Gabriel Petchesi pghora...@gmail.com wrote: Set up a custom cache key for the given page that does not include that information. Look for documentation about  

Re: [symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread stof
On Thu, 20 Jan 2011 07:33:42 -0800 (PST), cestcri cest...@yahoo.fr wrote: Hi Bernhard, thanks for your quick reply. Here is what I have: The validation setup in the entity class /** * @var text $locationName * @myvalidation:Location(property=locationName,

[symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread cestcri
Thanks Stof, I just found it... but it is good to know that I would have solved the issue anyway thanks to your eagle eyes ;) Best regards, Christian On Jan 20, 4:41 pm, stof s...@notk.org wrote: On Thu, 20 Jan 2011 07:33:42 -0800 (PST), cestcri cest...@yahoo.fr wrote: Hi Bernhard,

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

2011-01-20 Thread Venzon
I think I know why debuging is making me problems, I have noticed that some orm cache in always present in my apc cache and is used to map entities even when config.yml has been changed... -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: Custom validator is not called on validation

2011-01-20 Thread cestcri
By the way, can anybody explain how error messages are ideally set for custom validators? 1. They can be annotated in the entity class, e.g. * @myValidation:Location(message=Provide a valid location!) 2. They are stated in the contraint class, e.g. class Location extends

[symfony-users] Re: Routing: different character between vars

2011-01-20 Thread Gabriel Petchesi
Look into segment separators options for sfRouting: http://www.symfony-project.org/reference/1_4/en/05-Factories#chapter_05_sub_segment_separators This can be enabled for all routes or for specific ones. However I'm not sure this will work for you: /myroute/my-item-56 maybe with

[symfony-users] Is it possible to pass more than 1 object to the route ?

2011-01-20 Thread ma89a2
Hello to everyone. I need to retrieve more than just 1 object on the page. I have more related models and i would like to pass together on the route -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

[symfony-users] Using adoDB with symfony

2011-01-20 Thread Manuel Alejandro Gómez Nicasio
Hi everyone! I'm working on a project with symfony 1.4 and propel as a ORM. These days we are thinking about the possibility of make some changes to the project. What we think is if is posible to change de PDO with other library, maybe adoDB. Do you think this is possible? What would be the

Re: [symfony-users] Using adoDB with symfony

2011-01-20 Thread Gareth McCumskey
On 20/01/2011 19:27, Manuel Alejandro Gómez Nicasio wrote: Hi everyone! I'm working on a project with symfony 1.4 and propel as a ORM. These days we are thinking about the possibility of make some changes to the project. What we think is if is posible to change de PDO with other library,

[symfony-users] Re: Is it possible to pass more than 1 object to the route ?

2011-01-20 Thread Richtermeister
You can create a custom route class that understands how to retrieve your objects from whatever url pattern you come up with. Have a look here: http://www.symfony-project.org/more-with-symfony/1_4/en/02-Advanced-Routing Daniel On Jan 20, 9:07 am, ma89a2 marcelooliveira...@gmail.com wrote:

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

2011-01-20 Thread Venzon
I changed a bit my entity manager configuration: entity_managers: conn1: connection: conn1 mappings: HelloBundle: { type: annotation } conn2: connection: conn2 mappings: HelloBundle: { type:

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

2011-01-20 Thread Venzon
small correction, seems that now (with current config) I can call every method I create, doesnt matter what is its name -- 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

[symfony-users] Challenges with mpStarRatingPlugin1.0.0, ahDoctrineEasyEmbeddedRelationsPlugin1.4.4 with symfony1.3.8.

2011-01-20 Thread dmitrypol
I have a site where members can register, specify their interests and levels of interest (very interested in dogs, not interested in cats). Main tables are member, interest, level, interest_level with appropriate relationships. Interest_level has member_id, interest_id and level_id. Once a

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] Using adoDB with symfony

2011-01-20 Thread Manuel Alejandro Gómez Nicasio
thanks for answer, GarethMc. Propel works well. As I said, the project is almost done. However, these days while talking with the admin of the production boxes he told us that production machines doesn't have the PDO version that the project needs. So, he suggest to find an alternative to PDO,

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

2011-01-20 Thread taidehuone
Hi, I've been working on a Doctrine2 based authentication system for a while. I have successfully created the security controller, related views and configured config.yml as described in master docs. I can get to a login form fine and when I click submit, the login data is processed on the server