Re: Aw: Re: [symfony-users] [sf2] [FOS] Authenticate with email or username

2011-05-04 Thread Christophe COEVOET
Le 03/05/2011 23:35, Conrad a écrit : Thanks Jeremy for this detailed explanation :) Sorry for my late answer, I just had time to focus on this issue again. First of all, I read the Security User Guide http://symfony.com/doc/2.0/book/security/users.html#doctrine-entity-provider several times,

[symfony-users] Dealing with VERY complex query

2011-05-04 Thread passkey1...@gmail.com
Hi there, I'd like to ask you guys a question when you have to deal with a VERY complex query. Use case: An e-commerce website with integrated social network. User could have many friends on that website. For each user, I have to list all products which: - are marked as featured (sponsored

Aw: Re: Aw: Re: [symfony-users] [sf2] [FOS] Authenticate with email or username

2011-05-04 Thread Conrad
I just tried it with adding all classes.. with no success... -- 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

Re: [symfony-users] Dealing with VERY complex query

2011-05-04 Thread Michał Piotrowski
Hi, 2011/5/4 passkey1...@gmail.com passkey1...@gmail.com: Hi there, I'd like to ask you guys a question when you have to deal with a VERY complex query. Use case: An e-commerce website with integrated social network. User could have many friends on that website. For each user, I have to

[symfony-users] Re : Re: Symfony 2 and MSSQL

2011-05-04 Thread winzou
You need to retrieve the specific driver from Microsoft, check this out : http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ccdf728b-1ea0-48a8-a84a-5052214caad9 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

Re : Re: [symfony-users] [sf2] Creating ACL - Best practice ?

2011-05-04 Thread winzou
I've seen your solution, and I like it. But as this is a very common issue, I thought a better integrated solution would emerge. I didn't know that ACL doesn't use the ORM... Quite a problematic issue. (btw merk, is there any simple way for turning off trees in your bundle, and just have

Re: Re : Re: [symfony-users] [sf2] Creating ACL - Best practice ?

2011-05-04 Thread Tim Nagel
I intend on working on a component for the CommentBundle to make it linear in the near future. I've got a few ideas on how to achieve it, be it replacing the Tree object with something else or using a Sorter to achieve it. Probably wont get to it for a while though. t On Wed, May 4, 2011 at

Re: [symfony-users] Re : Re: Symfony 2 and MSSQL

2011-05-04 Thread apm
I think that not working under linux. Somebody use windows for webservers? awesome. 04.05.2011 17:45, winzou : You need to retrieve the specific driver from Microsoft, check this out : http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ccdf728b-1ea0-48a8-a84a-5052214caad9 -- If you

Re: [symfony-users] Dealing with VERY complex query

2011-05-04 Thread passkey1...@gmail.com
Hi Michał, Thank you for your answer. I think that's a good solution. How would you deal with offset and limit if I want to have a pager?. With the intersection of multiple arrays, offset does not make sense anymore, doesn't it? Tuan 2011/5/4 Michał Piotrowski mkkp...@gmail.com Hi, 2011/5/4

[symfony-users] Re: PR11 to Beta1 - Tests using PDO_sqlite now fail

2011-05-04 Thread Donald
None of my tests use multiple requests, so I haven't run into that yet. But I'm sure I will at some point. Thanks for the workaround, it looks like a nice clean fix. On May 3, 6:03 pm, danielholmes dan...@creatio.com.au wrote: With the in memory db, I still have the problem of multi request

[symfony-users] [AsseticBundle][Compass] Compile for production?

2011-05-04 Thread Daniel Gomes
Hello, I'm using compass in the AsseticBundle for the CSS's. My question is, in development it creates a temporary css file but in production it doesn't? Is there other configuration that i need to do? Thanks, Daniel Gomes m: +351 93 818 57 09 email: daniel.go...@reset.pt

[symfony-users] Symfony blog quotes and cyrilic blog

2011-05-04 Thread Dmitry Bykadorov
Sorry for offtop, I have a blog with couple articles about symfony symfony 2 (on russian, UTF-8). But when Symfony blog quotes adds my article - it break encoding. Who can help me with this issue (e.g. Fabien? ))? I'm not sure where the problem - on my side or blogs aggregator. Thanks. -- If

[symfony-users] Re: Symfony blog quotes and cyrilic blog

2011-05-04 Thread Dmitry Bykadorov
Sorry, i have many articles and translations )) On 4 май, 16:53, Dmitry Bykadorov dmitry.bykado...@gmail.com wrote: Sorry for offtop, I have a blog with couple articles about symfony symfony 2 (on russian, UTF-8). But when Symfony blog quotes adds my article - it break encoding. Who can

[symfony-users] [Symfony2][Forms] Object value in Twig template

2011-05-04 Thread Don Pinkster
Hello list, How can I retrieve the value of the object (data_class) in my Twig view for a readonly purpose? In symfony 1 I could use $form['field']-getValue(). Thanks in advance. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] [Symfony2] - Trouble with MenuBundle in beta1 - cannot override renderLink() from MyCustomMenuItem

2011-05-04 Thread seven seven
Hi everyone, Let me be short. I have a class MainMenu and I want to override the *renderLink() *from MenuItem in *MyCustomMenuItem *class, but something is not working because I have nothing in my output html but the default output. *In MainMenu extends Menu:*

[symfony-users] Re: PR11 to Beta1 - Tests using PDO_sqlite now fail

2011-05-04 Thread Donald
I tried setting up a custom Client as you explained, but I'm getting an error complaining that test.client.class: com\frazerbilt\quartz \Component\Test\Client I put the new config line in my config_test.yml. Any ideas what I'm doing wrong? On May 4, 7:35 am, Donald chekot...@gmail.com wrote:

[symfony-users] Re: PR11 to Beta1 - Tests using PDO_sqlite now fail

2011-05-04 Thread Donald
Screwed up that copy paste! The correct error is: There is no extension able to load the configuration for test.client.class On May 4, 9:30 am, Donald chekot...@gmail.com wrote: I tried setting up a custom Client as you explained, but I'm getting an error complaining that test.client.class:

[symfony-users] Symfony2 forms : can I show/hide fields

2011-05-04 Thread Manu
Hi everybody, I have a blog written in symfony 1.4 that I'm going to rewrite in Sf2. I'm wondering if the following is possible in Sf2 : Can I have a form, where some fields are shown/hidden according to the selected field in some combobox ? Practical example : I have a table, named contents,

[symfony-users] SF2 Forms -

2011-05-04 Thread Roger Webb
I posted this issue on the dev list as well (maybe not the right place). I have a ContactInfo entity that has a relationship to a City entity (ManyToOne). I use an entity type to represent the City in the form. I also have a state field (US) which is also of the entity type. When the state is

[symfony-users] [Symfony2] How to configure custom test client

2011-05-04 Thread Donald
Hi, I'm trying to configure a custom test client. I have the class setup, but I'm getting an error when configuring it in my config file. I have the following added to the end of my config_test.yml file: test.client.class: MyProject\MyClient But I'm getting the following error: There is no

[symfony-users] Re: Symfony2 forms : can I show/hide fields

2011-05-04 Thread Donald
Yes you can. The actual hiding would be carried out on the client side with Javascript, by setting the display css attribute of the field to none. You would also need to implement proper validation in the Entity backing the form so that it ignores the additional fields that are not required for

Re: [symfony-users] [Symfony2] How to configure custom test client

2011-05-04 Thread Christophe COEVOET
Le 04/05/2011 17:32, Donald a écrit : Hi, I'm trying to configure a custom test client. I have the class setup, but I'm getting an error when configuring it in my config file. I have the following added to the end of my config_test.yml file: test.client.class: MyProject\MyClient But I'm

[symfony-users] Re: PR11 to Beta1 - Tests using PDO_sqlite now fail

2011-05-04 Thread Donald
Never mind, got an answer here: http://groups.google.com/group/symfony-users/browse_thread/thread/4c5a298e55653c9b Thanks again for your help. On May 4, 9:38 am, Donald chekot...@gmail.com wrote: Screwed up that copy paste! The correct error is: There is no extension able to load the

[symfony-users] Re: [Symfony2] How to configure custom test client

2011-05-04 Thread Donald
Thanks! On May 4, 11:03 am, Christophe COEVOET s...@notk.org wrote: Le 04/05/2011 17:32, Donald a crit : Hi, I'm trying to configure a custom test client. I have the class setup, but I'm getting an error when configuring it in my config file. I have the following added to the

[symfony-users] [Symfony 2] Form Date Field Format

2011-05-04 Thread Kaipi Yann
Hi, I use a birthday date field in a form, displayed widget option = text . I want my texfield to display the date like this ex : 31/12/2010 (with 4 digit for the year) But I can't manage to find the way to make it since the widget can handle only IntlDateFormatter and the short one is

Re: [symfony-users] Sf2: the right way to start a project

2011-05-04 Thread Christophe COEVOET
Le 04/05/2011 18:48, Matt Robinson a écrit : I've been playing with the PRs for a while, but now that the beta is out, I want to start a real project (a rewrite of http://directors.mapofpower.com/ ). Is there a best practice way of doing this, and if so, is it worth making a cookbook entry for

[symfony-users] Sf2: the right way to start a project

2011-05-04 Thread Matt Robinson
I've been playing with the PRs for a while, but now that the beta is out, I want to start a real project (a rewrite of http://directors.mapofpower.com/ ). Is there a best practice way of doing this, and if so, is it worth making a cookbook entry for it? Or am I the only one who doesn't know what

Re: [symfony-users] Sf2: the right way to start a project

2011-05-04 Thread Paul Dugas
On Wed, May 4, 2011 at 12:54 PM, Christophe COEVOET s...@notk.org wrote: Le 04/05/2011 18:48, Matt Robinson a écrit : I've been playing with the PRs for a while, but now that the beta is out, I want to start a real project (a rewrite of http://directors.mapofpower.com/ ). Is there a best

Re: [symfony-users] [Symfony2][Forms] Object value in Twig template

2011-05-04 Thread Bernhard Schussek
Hi, Try form.vars.value. Bernhard -- 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

[symfony-users] Re: SF2 Forms -

2011-05-04 Thread Roger Webb
Hey Donald and Friends, As requested, snippets of the relevant classes: class ContactInfo { /** * @orm:ManyToOne(targetEntity=Cities) * @orm:JoinColumn(name=city_id, referencedColumnName=city_id) */ private $cities; } class ContactType extends AbstractType { public

Re: [symfony-users] Re: Comparison of fields in validation

2011-05-04 Thread Bernhard Schussek
Hi Daniel, If you could prepare a PR with such constraints, I'd be happy to merge it. I would prefer if the constraint had only a single option properties which is also the default option. In case of LessThan, each property in that array should be less than all properties after that. So in

Re: [symfony-users] Re: SF2 Forms -

2011-05-04 Thread Bernhard Schussek
Hi Roger, You should never rely on the form data in your type class (as you've just discovered). When the form is constructed, you can never be certain that the data is already available and won't be changed. In your case, I recommend to add an event listener to the preBind and preSetData events

Re: [symfony-users] Re: Symfony 2 and MSSQL

2011-05-04 Thread Jean-Philippe Blais
You want an advice? Avoid MSSQL at all. Stick on MySQL or pgSQL. On Wed, 04 May 2011 17:07:41 +0600, apm korja...@gmail.com wrote: Which driver i must use for doctrine/mssql ? dbo_sqlsrv ?? I cant start this. always get. [PDOException] could not find driver 08.03.2011

[symfony-users] Re: Symfony2 on GoDaddy

2011-05-04 Thread Laurus
I understand that GoDaddy is not the best webhosting but there are a lot of clients who use them. It will be very nice if we are able to solve this issue. On May 4, 12:06 am, Luis Cordova cordo...@gmail.com wrote: oppps oh no sorry scratch that, I just recalled that I had problems because they

[symfony-users] exceeded the limit of internal redirects (mac, fix)

2011-05-04 Thread les
Hey, I was having some trouble running the BETA for symfony2 getting this error: Request exceeded the limit of 10 internal redirects due to probable configuration error This might happen because it's a mac or I use VirtualDocumentRoot (assumptions) But putting the following in my .htaccess file

[symfony-users] doctrine:generate:repositories not found

2011-05-04 Thread umpirsky
Looks like there is no doctrine:generate:repositories command in Symfony2 beta1. Is it removed? How can I generate repostories now? -- 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

Re: [symfony-users] Symfony2 on GoDaddy

2011-05-04 Thread Jean-Philippe Blais
See http://www.servergrove.com/sharedhosting *Jean-Philippe Blais, B. Ing.* Programmeur analyste sénior *ZEA Informatique inc. http://www.zinfo.ca* jphbl...@zinfo.ca Tel : 514-826-9641 gTalk : jphbl...@gmail.com Skype :

[symfony-users] Re: Symfony2 on GoDaddy

2011-05-04 Thread mattcarp
I'm fairly sure GoDaddy is using PHP 5.2.14, and you'll need 5.3.2 or higher to run Symfony2 (link: http://help.godaddy.com/topic/419/article/4180?locale=en ) I'm using amazon AWS, with a Ubuntu install running on a micro instance (which means it's somewhere between cheap and free, until I need

[symfony-users] [Symfony2 beta1] User authentication with form_login

2011-05-04 Thread Amaury Leroux de Lens
Hi ! i'm currently trying to authenticate users on a symfony2 app. here is my security.yml : https://gist.github.com/954985 If i use http_basic, a user can login, more precisely, user is logged in on secured pattern, so i assume my security config is ok. but my goal is to use form_login (as

Re: [symfony-users] Dealing with VERY complex query

2011-05-04 Thread Marco Pivetta
SQL is way faster than PHP processing. I would really go for a filtered join. That's what SQL is there for :) Just be sure to filter by index and to return a limited resultset. Sequential scan in PHP has to be ABSOLUTELY avoided :) Marco Pivetta @Ocramius http://twitter.com/Ocramius

[symfony-users] Re: [new Forms] Custom Labels in FormBuilder

2011-05-04 Thread Mark Fullbrook
That is exactly how I have specified the labels for my forms and it works for me. Have you upgraded to the latest Symfony code? On May 2, 12:58 pm, Conrad conrad.barthel...@googlemail.com wrote: I would like to customize my labels for my forms using the 'label' option of a field, unfortunately

Re: [symfony-users] Dealing with VERY complex query

2011-05-04 Thread Marco Pivetta
Oh, sorry, forgot to mention that you should use the UNION syntax to fasten up this stuff a bit. Avoid using OR operator in queries, it almost destroys every attempt to use an index :) Marco Pivetta @Ocramius http://twitter.com/Ocramius http://marco-pivetta.com On 4 May 2011 12:21, Marco

Re: [symfony-users] Re: Symfony 2 and MSSQL

2011-05-04 Thread Marco Pivetta
Did you try with pdo_dblib? http://www.php.net/manual/en/ref.pdo-dblib.php Marco Pivetta @Ocramius http://twitter.com/Ocramius http://marco-pivetta.com On 4 May 2011 13:07, apm korja...@gmail.com wrote: Which driver i must use for doctrine/mssql ? dbo_sqlsrv ?? I cant start this. always

Re: [symfony-users] symfony website on NFS - very slow?

2011-05-04 Thread Jean-Philippe Blais
From my point of view, I avoid using NFS it is a performance killer. symfony project:deploy use rsync and do the right job for me. JP *Jean-Philippe Blais, B. Ing.* Programmeur analyste sénior *ZEA Informatique inc.

[symfony-users] [SF2][Beta1] POST rendering with two forms inside the same view

2011-05-04 Thread maboiteaspam
Hi, I'm having problems when during POST rendering with two forms inside the same view. I created two routes, one for GET, one for POST. GET route create the 2 Forms, and pass them to a Twig view. POST view create, also, the 2 Forms, but it does bind request, and then pass to twig template.

Re: [symfony-users] Issues with Entity Fields in SF2 Form Component

2011-05-04 Thread Bernhard Schussek
Some of your questions were answered in the other thread already. As for completeness, you can decouple your type form EntityManager by using a closure in the query_builder option: 'class' = 'Entity:Cities', 'query_builder' = function (EntityRepository $repository) use ($state) {

Re: [symfony-users] ::buildForm() compatibility error with FormTypeInterface::buildForm()

2011-05-04 Thread Bernhard Schussek
You must have a typo somewhere. This is working for me. Bernhard -- 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,

Re: [symfony-users] [Symfony2 Forms] CollectionType - cannot display error messages with widget

2011-05-04 Thread Bernhard Schussek
Which errors are you talking about? Bernhard -- 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

Re: [symfony-users] Re: Symfony2 on GoDaddy

2011-05-04 Thread Jeremiah Dodds
On Tue, May 3, 2011 at 6:32 PM, Laurus laurusgroup@gmail.com wrote: I understand that GoDaddy is not the best webhosting but there are a lot of clients who use them. It will be very nice if we are able to solve this issue. Solving it is godaddy updates their supported php versions to be

Re: [symfony-users] doctrine:generate:repositories not found

2011-05-04 Thread Jeremiah Dodds
On Wed, May 4, 2011 at 9:58 AM, umpirsky umpir...@gmail.com wrote: Looks like there is no doctrine:generate:repositories command in Symfony2 beta1. Is it removed? How can I generate repostories now? All it did was make an empty class. If you're using YAML mapping, just put repositoryClass:

Re: [symfony-users] doctrine:generate:repositories not found

2011-05-04 Thread Fabien Potencier
It's now done in the dotrine:generate:entities command. -- Fabien Potencier Sensio CEO - Symfony lead developer sensiolabs.com | symfony.com | fabien.potencier.org Tél: +33 1 40 99 80 80 On 5/4/11 3:58 PM, umpirsky wrote: Looks like there is no doctrine:generate:repositories command in

Re: [symfony-users] Re: Symfony2 on GoDaddy

2011-05-04 Thread Greg Militello
It would be impossible without rewriting it. Symfony2 relies on the wonderful technology in PHP 5.3+; including namespaces, end Lamba functions. http://php.net/releases/5_3_0.php 5.3.2 included a TON of security/bug fixes over 5.3.0, and frankly versions before 5.3.2 had issues compiling on

[symfony-users] Symfony Production

2011-05-04 Thread Laxmi
Hello, I recently completed the web application on my laptop. Now I need to push it on production server. Hear is the thing i am planning to do. Install Symfony on the server and configure the webserver. Deploy on the production server as mentioned in

[symfony-users] How to upgrade a sandbox project from 1.4.x to 1.4.11?

2011-05-04 Thread Hesky Ji
Could anyone please share some experience? 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 the Google Groups symfony users group. To post to this group, send email to

[symfony-users] [Symfony 2] schema importing

2011-05-04 Thread Καρακούσης Απόστολος
Hi group :) i'm searching for a way to describe my database schema like I did in sf1 doctrine 1. I've read there is a way in Doctrine 2 to read a Doctrine 1 schema.yml by using the command doctrine orm:convert-d1-schema but by reading the Symfony 2 console help I haven't found this command

[symfony-users] Re: locale in urls

2011-05-04 Thread robjensen82
Thanks very much On May 3, 8:23 am, Саша Стаменковић umpir...@gmail.com wrote: {{ path('myroute', {'_locale': app.request.attributes.get('_locale')}) }} --- Regards, Saša Stamenković On Sun, May 1, 2011 at 10:35 AM, robjensen82 robjense...@gmail.com wrote: Hi there, I'm in the

Re: [symfony-users] Symfony Production

2011-05-04 Thread Matt Robinson
On 4 May 2011, at 21:55, Laxmi wrote: I recently completed the web application on my laptop. Now I need to push it on production server. [...] but my question is how can i create instances of my application like development, staging, production. My advice is to set up Apache VHosts on either

[symfony-users] Re: Symfony Production

2011-05-04 Thread Laxmi
Thanks Matt for your reply, I successfully completed the web application on my laptop. Now I am pushing it on server. What are the changes i need to do so that my application runs smoothly on server. Thanks On May 4, 2:48 pm, Matt Robinson m...@lazycat.org wrote: On 4 May 2011, at 21:55, Laxmi

Re: [symfony-users] Re: Symfony Production

2011-05-04 Thread Matt Robinson
On 4 May 2011, at 23:39, Laxmi wrote: Thanks Matt for your reply, I successfully completed the web application on my laptop. Now I am pushing it on server. What are the changes i need to do so that my application runs smoothly on server. You linked to the Jobeet page on deploying - that

Re: [symfony-users] Dealing with VERY complex query

2011-05-04 Thread Michał Piotrowski
2011/5/4 passkey1...@gmail.com passkey1...@gmail.com: Hi Michał, Thank you for your answer. I think that's a good solution. How would you deal with offset and limit if I want to have a pager?. With the intersection of multiple arrays, offset does not make sense anymore, doesn't it? Tuan I do

Re: [symfony-users] Dealing with VERY complex query

2011-05-04 Thread Michał Piotrowski
2011/5/4 Marco Pivetta ocram...@gmail.com: SQL is way faster than PHP processing. I would really go for a filtered join. That's what SQL is there for :) Just be sure to filter by index and to return a limited resultset. Sequential scan in PHP has to be ABSOLUTELY avoided :) I'm not sure how

[symfony-users] Design question - sharing forms between apps

2011-05-04 Thread OnDistantShores
Here's my scenario, I'm not sure what the best way to implement this is. I'm creating a party bookings system. Anyone can go to my frontend app and submit a new booking. Once they're finished, they'll just get a confirmation screen, they can't edit it. Easy. Only certain users will be able to

Re: [symfony-users] Dealing with VERY complex query

2011-05-04 Thread Matt Robinson
On 4 May 2011, at 23:57, Michał Piotrowski wrote: 2011/5/4 Marco Pivetta ocram...@gmail.com: SQL is way faster than PHP processing. I would really go for a filtered join. That's what SQL is there for :) Just be sure to filter by index and to return a limited resultset. Sequential scan in

[symfony-users] Re: User authentication with form_login

2011-05-04 Thread danielholmes
Hi Armaury, I'm currently having a couple of problems with security myself, so im not sure if I can answer your whole question. One thing i noticed though - you should submit your form to /security_check directly rather than to your /login controller then doing a redirect. The idea is that the

[symfony-users] Re: PR11 to Beta1 - Tests using PDO_sqlite now fail

2011-05-04 Thread danielholmes
Sorry i missed your messages, I wish I could just receive emails for discussions I'm taking part in. Also I'm sorry about those instructions - I should have been more specific! I've ran in to another problem which I thought I'd mention in case you run in to it too: the sessions are staying

[symfony-users] Re: Comparison of fields in validation

2011-05-04 Thread danielholmes
Hi Bernhard, Yea that sounds good, I'll do it tonight and send across the PR. The single properties option is a much better idea. I didn't realise you could put that assert:True on a method as Tim pointed out - very handy. I think there'll probably be a lot of new users who would be looking

[symfony-users] Re: [Beta1] POST rendering with two forms inside the same view

2011-05-04 Thread danielholmes
I would suggest trying something like this: $request = $this-get('request'); if ($request-getMethod() === 'POST') { if ($request-get('login') !== null) { $form_login-bindRequest($request); // Do your login logic here } else if

[symfony-users] Re: [new Forms] Custom Labels in FormBuilder

2011-05-04 Thread Conrad
No it's still the beta 1 version.. But glad to know that it should work :) Then I'll check this up again with the next beta.. -- 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