[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

[symfony-users] Re: error clearing the cache

2011-01-12 Thread Sela
/improvin... 2010/12/26 Sela tzi...@gmail.com I run symfony cc on a hosted VPS server by ServerGrove and I get the following error PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4224 bytes) in /var/www/html/lib/vendor/symfony/lib/ cache

[symfony-users] Re: error clearing the cache

2011-01-12 Thread Sela
-project.org/projects/orm/1.2/docs/manual/improvin... 2010/12/26 Sela tzi...@gmail.com I run symfony cc on a hosted VPS server by ServerGrove and I get the following error PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4224 bytes) in /var/www/html

[symfony-users] change for index

2011-01-09 Thread Sela
i changed one of the index and would like to change only that specific model as the model coz i had a unique constraint when i use the admin it still think the index is there, when it isn't so if i directly insert something to the database it works, but not through the admin. how can i change only

[symfony-users] clear cache

2011-01-08 Thread Sela
I try to clear the cache on a VPS by ServerGrove, I took the minimal package and I get this error. PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4224 bytes) in /var/www/html/lib/vendor/symfony/lib/ cache/sfFileCache.class.php on line 149 Fatal error:

[symfony-users] Doctrine_Connection_Statement and Doctrine_Connection_Mysql

2010-10-22 Thread Sela
in the debug tool bar what is the difference between them? i got a query under Doctrine_Connection_Statemen only on the hosting VPS server, can't get the same sql query when have the same thing on my dev machine. -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] Clear cache in action

2010-10-18 Thread Sela Yair
for this not to work. $ccTask = new sfClearCacheTask(); $ccTask-run(); -- Pierre-Yves LEBECQ 2010/10/12 Sela Yair tzi...@gmail.com is there a single command in sfConfigCache to clear all the cache? i want to enable from the admin to do similar to symfony cc On 8 October 2010 15:00, Damien

Re: [symfony-users] Problem with fixtures and nested set behaviour schema

2010-10-14 Thread Sela Yair
i would assume it's the database relations, do you use the same database on windows and ubuntu? On 13 October 2010 15:34, Benjamin benni.voll...@gmx.de wrote: Hello, I have a schema with a nested set behaviour likes this: MName: columns: name: { type: string(45)} MValue: actAs:

Re: [symfony-users] Clear cache in action

2010-10-12 Thread Sela Yair
is there a single command in sfConfigCache to clear all the cache? i want to enable from the admin to do similar to symfony cc On 8 October 2010 15:00, Damien Alexandre dalexan...@clever-age.com wrote: For this kind of question, make sure to search in the documentation :

[symfony-users] string foreign key

2010-08-12 Thread Sela
i use in my schema the 2 letters country code as my foreign key. so first primary key was id and i got the value in the options the IDs or PromoteCountry, then I thought I would use the country column as the primary key to test this option, but the admin didn't display anything as i know it

[symfony-users] load to include_partial without using action

2010-08-01 Thread Sela
i want to load stuff to include_partial without actually doing it through the action, i thought about doing it as a filter, but can't find any thing similar. i need that to build a menu which is populated according to the route, so for example if the route is /cars it'll retrieve list of cars from

Re: [symfony-users] vjCommentPlugin and sfDoctrineGuardUser 5.0.0

2010-07-24 Thread Sela Yair
anyone has tried to upgrade from 4.0.x to 5.0.0 of sfGuardDoctrine ? as i get an erro On 23 July 2010 21:47, Gustavo Adrian comfortablynum...@gmail.com wrote: Don't matter. I forgot to enable the plugin again in projectConfiguration.class.php Thanks! On Fri, Jul 23, 2010 at 5:44 PM,

Re: [symfony-users] sfFacebookConnectPlugin cookie issues?

2010-07-22 Thread Sela Yair
not really, I just managed to fix the problem I had with this plugin to use facebook connect and using $sf_user-getCurrentFacebookUid() return to me the real user id in facebook. I used firebug to actually read the response I get from facebook server, have you tried that? On 21 July 2010 18:07,

Re: [symfony-users] upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-22 Thread Sela Yair
what actually did you change in the 5.0.0 release? On 18 July 2010 19:37, fizyk fi...@fizyk.net.pl wrote: Hello, I'm trying to upgrade sfDoctrineGuardPlugin to the new version, and at first found that surprised that although in changelog said there was only change (fix) to the Remember Me?

Re: [symfony-users] virtual column - doctrine

2010-06-09 Thread Sela Yair
if what you suggested can solve my problem. Sela On 9 June 2010 01:50, Mariano Sola mariano.s...@gmail.com wrote: Hi Sela, how is it going? I met with the same situation some weeks ago and the solution I got was the following (take in consideration that my project is a Propel one): 1

[symfony-users] virtual column - doctrine

2010-06-07 Thread Sela
i got a table with countries list and i keep the 2 letters code of the country. i want to use a virtual column to be populated according to the user language as i can get translation for all the countries using the symfony. i want to have this virtual column in order to be able to sort when i

Re: [symfony-users] Re: why not host symfony1.4 on shared-hosting?

2010-05-29 Thread Sela Yair
what is the cheapest i can get for a dedicated server? On 29 May 2010 14:20, comb sa...@gmx.net wrote: Thanks for your detailed answers pghotariu rooster (Russ), I have a managed server for my business projects, but for a more or less private page I have a shared host, too. They use

Re: [symfony-users] Re: why not host symfony1.4 on shared-hosting?

2010-05-29 Thread Sela Yair
, 2010 at 11:32 PM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Well ... you can try a VPS for a start. I have a provider that gives me 10 E / month the smallest packet http://www.intovps.com/ Alecs On Sat, May 29, 2010 at 2:29 PM, Sela Yair tzi...@gmail.com wrote: what

Re: [symfony-users] Re: sfForkedDoctrineApplyPlugin with sfFacebookConnectPlugin

2010-05-29 Thread Sela Yair
they should conflict, just add the comumns to your schema as mentioned in the documentation. Cheers, Fabrice On May 24, 11:31 pm, Sela tzi...@gmail.com wrote: i noticed both of those plugins use sf_guard_user_profile table with different columns. how can i use it then? i got already

[symfony-users] sfForkedDoctrineApplyPlugin with sfFacebookConnectPlugin

2010-05-24 Thread Sela
i noticed both of those plugins use sf_guard_user_profile table with different columns. how can i use it then? i got already the database configured for sfForkedDoctrineApplyPlugin and want to install sfFacebookConnectPlugin. -- If you want to report a vulnerability issue on symfony, please

[symfony-users] menu and notification

2010-05-21 Thread Sela
i put in my template a slot to update the menu in the layout. the problem i encounter is where to do check for values i need to display in the menu. i use a partial as the menu and pass variables that are depends on some conditions. should i use event or something else? -- If you want to report

[symfony-users] Doctrine insert instead of replace

2010-05-10 Thread Sela
i develop on a Mac with MAMP and deployed my app to ubuntu server with the deployment tool of symfony. there's something quite weird happening, form is insert new row on the linux when on MAMP i get an error it violates the constraint. it all happens when i refresh the page before clicking on the

[symfony-users] Re: Doctrine insert instead of replace

2010-05-10 Thread Sela
i think i found the problem, so plz don't answer i'll write my findings a bit later. On May 11, 1:23 am, Sela tzi...@gmail.com wrote: i develop on a Mac with MAMP and deployed my app to ubuntu server with the deployment tool of symfony. there's something quite weird happening, form is insert

Re: [symfony-users] sfDoctrineGuardUser custom LDAP authenication funkyness

2010-05-09 Thread Sela Yair
this is app.yml in /config not app.yml in /apps/xxx why does it redirects to backend? i had similar problem, but i think setting that app.yml fixed it. all: sf_guard_plugin: success_signin_url: @homepage # the plugin use the referer as default success_signout_url: @homepage #

Re: [symfony-users] Re: foreign key and sfDoctrineGuardPlugin

2010-05-05 Thread Sela Yair
2010 23:58, Sela Yair tzi...@gmail.com wrote: thanks, that what i was after. On 4 May 2010 18:27, Casey casey.cam...@gmail.com wrote: Doctrine make this easier. The way you are doing it works, but it may be harder to maintain in the future. I would reccommend something like

Re: [symfony-users] Re: foreign key and sfDoctrineGuardPlugin

2010-05-04 Thread Sela Yair
and another table object. Is that what you want? Please describe you question again.. On 3 kvě, 14:37, Sela tzi...@gmail.com wrote: I want to associate a table with the user ID generated from sfDoctrineGuardPlugin when the user is logged in. I thought to do it in save() but not sure how

Re: [symfony-users] send_msg

2010-05-04 Thread Sela Yair
you need to have SMTP server to connect to. Most ISP blocks to disable spamming so it would be impossible then to have one on your local computer. In the docs of symfony there's instructions how to configure gmail server. On 4 May 2010 00:57, safa boubekri boubekri.s...@gmail.com wrote: how

Re: [symfony-users] Re: foreign key and sfDoctrineGuardPlugin

2010-05-04 Thread Sela Yair
['user_id'] = $this-getUser()-getGuardUser()-getId();* *$form-bind($formData, $request-getFiles($form-getName()));* *if ($form-isValid())* *{* On 4 May 2010 10:50, Sela Yair tzi...@gmail.com wrote: Thanks. Yes that's what I'm after. the following is the table in schema.yml Member

Re: [symfony-users] Re: foreign key and sfDoctrineGuardPlugin

2010-05-04 Thread Sela Yair
easier in the future if you perform as little logic as possible in the action or the view. HTH, Casey On May 4, 4:27 am, Sela Yair tzi...@gmail.com wrote: I think I found slick solution, would like to get some feedback if that's the ideal solution. in action.class.php i modified

[symfony-users] foreign key and sfDoctrineGuardPlugin

2010-05-03 Thread Sela
I want to associate a table with the user ID generated from sfDoctrineGuardPlugin when the user is logged in. I thought to do it in save() but not sure how to get the userID at that point as it's in lib/model/doctrine and in the plugin readme they explain how to get the value only from the

Re: [symfony-users] Re: Multiple File Uploads in Embed Form

2010-04-15 Thread Sela Yair
http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms On 15 April 2010 09:27, saki sakrame...@gmail.com wrote: thx! which book contains this topic? On ápr. 14, 23:37, Sela Yair tzi...@gmail.com wrote: did you read the more symfony book? there's an example how to upload

Re: [symfony-users] Multiple File Uploads in Embed Form

2010-04-14 Thread Sela Yair
did you read the more symfony book? there's an example how to upload multiple photos. On 14 April 2010 18:26, saki sakrame...@gmail.com wrote: hi girls, guys... i would like to implement a multiple file upload function on my page. a lot of modules will use it, so i would like to store all

Re: [symfony-users] Initial Setup

2010-04-07 Thread Sela Yair
hi Arrann, please describe the problem you encounter otherwise when read your post can't understand how to help. did you read the jobeet book? there is explanation how to modify the settings. Sela On 6 April 2010 12:53, Azda a...@pixelperfectmedia.co.uk wrote: Hi all, Right - to put

[symfony-users] schema.sql why generate to create same table twice?

2010-04-05 Thread Sela
I generate the sql from the schema.yml and get this CREATE TABLE sf_guard_user_profile (id BIGINT AUTO_INCREMENT, user_id INT NOT NULL, email VARCHAR(80) NOT NULL UNIQUE, firstname VARCHAR(30), lastname VARCHAR(70), validate_at datetime, validate VARCHAR(33), created_at DATETIME NOT NULL,

[symfony-users] datagrid plugin

2010-03-15 Thread Sela
i installed this plugin and realised the suggested configuration doesn't work with symfony 1.4 as when checking the log i could see it tried to call formhelper.php that isn't supported in symfony 1.4. what should i do then? -- If you want to report a vulnerability issue on symfony, please send