Re: [symfony-users] [Symfony2] Application transaction question

2011-01-05 Thread Gareth McCumskey
That would have been my way-to-do-it-right-but-time-consuming idea for you. We in fact have done that ourselves we have a full API system to assist communications between multiple applications (some with code we have no access to) and it works beautifully. Good luck with implementing your solution

[symfony-users] Debugging symfony application within Eclipse?

2011-01-05 Thread Eric B
Hi, I'm wondering if anyone has had any success in getting a symfony app to debug (step-by-step) using Eclipse PDT. I've downloaded both the XDebug and the ZendDebug dlls and am having difficulties with both. The closest I've managed to get working is to try to create a launch config from within

Re: [symfony-users] [Symfony2] Application transaction question

2011-01-05 Thread Gustavo Adrian
First of all, thanks a lot for your feedback on this matter Gareth. it's really very helpful. The notification via web services as you've described is almost exactly what I have in mind for my actual app. But with only one difference. I want to create a "middle" app between the rest of application

[symfony-users] re:Using UUIDs for primary keys vs AutoIncrementing/Sequence based primary keys

2011-01-05 Thread Dennis Gearon
Fortunately, Postgres has a UUID column type. It only uses 16 bytes, instead of the 38 or so required for a 35 character CHAR column. The trick will be getting Symfony to use it. Massimiliano Arione Jan 04 06:13AM -0800 ^ You can find discussions on mysql forum, stating that char key is slo

Re: [symfony-users] sfWidgetFormChoice

2011-01-05 Thread Emmanuel
symfony 1.4.8. On this message i post how i solved my problem. Hi, i solved my problem puting this code in my model: public function setMyField ($value) { $this->_set("my_field", implode("|", $value)); } public function getMyField () { $tmp = explode("|",$this->_get("my_field")); $values = ar

Re: [symfony-users] sfWidgetFormChoice

2011-01-05 Thread Gareth McCumskey
What version of symfony are you using? sfWidgetFormChoice only exists for symfony 1.4. On Wed, Dec 29, 2010 at 6:58 PM, emanu.ti wrote: > Hi, I want to use sfWidgetFormChoice with "multiple" => true > parameter. Here is my code: > > 'leavewhenempty' => new sfWidgetFormChoice( >

[symfony-users] "SELECT DISTINCT ON" with Doctrine + pgsql

2011-01-05 Thread Rodrigo Ruiz Fuentes
Hi, i need to select some fields from differents tables, then group them by a specific field using Doctrine and PgSql. With SQL, postgres require all fields used in select into 'group by'. If i need to group by some fields, i use "select distinct on (field1, field2)", how could i do that with D

[symfony-users] Fwd: [Symfony2]Autoloading problem

2011-01-05 Thread Yohan GIARELLI
Hi all, I'm trying to use the Doctrine2 NestedSet extension but I have a problem with autoloading. I have put the doctrine2-nestedset directory into my vendors and my autoload.php looks like this : $loader->registerNamespaces(array( ... 'DoctrineExtensions' => $vendorDi

[symfony-users] [Symfony2]Autoloading problem

2011-01-05 Thread Yohan 'rouKs' G.
Hi all, I'm trying to use the Doctrine2 NestedSet extension but I have a problem with autoloading. I have put the doctrine2-nestedset directory into my vendors and my autoload.php looks like this : $loader->registerNamespaces(array( ... 'DoctrineExtensions' => $vendorDir.

Re: [symfony-users] Re: Removing myself from plugin contributors ?

2011-01-05 Thread Loïc Vernet
I don't think, you appear on the developer list with your contribution request was accepted by the lead dev. 2011/1/5 Grzegorz Śliwiński > Isn't that set in plugin.xml file? > > On Jan 4, 2:55 pm, Loïc Vernet wrote: > > Hi, > > > > How to remove myself from the list of the contributors of a plu

Re: [symfony-users] pdo connection error

2011-01-05 Thread Alex Pilon
Post your database.yml. On Wed, Jan 5, 2011 at 11:40, erman taylan wrote: > hi all, > > My project works fine on my local. When i put it on Debian, I am facing an > error: > > PDO Connection Error: SQLSTATE[HY000] [2013] Lost connection to MySQL > server at 'reading initial communication packet'

[symfony-users] Re: doctrine:generate:entities generating classes in wrong folder?

2011-01-05 Thread jopoli...@gmail.com
thank you so much!! that solved the problem, but why only happened to us, and if it happened to everyone why hasn't been fixed? i've cloned the github repo 05/01/2011 and still the problem was present. On 30 dic 2010, 11:05, pzwosta wrote: > Hi jorge, > > I had the same problem. Two changes in li

[symfony-users] pdo connection error

2011-01-05 Thread erman taylan
hi all, My project works fine on my local. When i put it on Debian, I am facing an error: PDO Connection Error: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 110 I searched it on the internet, everyone thinks its because of databa

[symfony-users] Help with Routing

2011-01-05 Thread _HiDAl
Hello first, my english is very basic. well, I need create a route for links like that http://domain/c/:slug/:node/filter1-value1|value2|..|valueN/.../filterN-valueN1|valueN2 i try it using this in routing.yml show: url: /c/:slug/:node/* param: { module: module1, action: action1 } require

Re: [symfony-users] Re: sfWidgetFormChoice

2011-01-05 Thread Emmanuel de Carvalho Garcia
Hi, i solved my problem puting this code in my model: public function setMyField ($value) { $this->_set("my_field", implode("|", $value)); } public function getMyField () { $tmp = explode("|",$this->_get("my_field")); $values = array(); foreach ($tmp as $t) { $values[$t] = $t } r

[symfony-users] Re: Removing myself from plugin contributors ?

2011-01-05 Thread Grzegorz Śliwiński
Isn't that set in plugin.xml file? On Jan 4, 2:55 pm, Loïc Vernet wrote: > Hi, > > How to remove myself from the list of the contributors of a plugin ? > > We should have a cross to do this in the admin tab. (Like when you are lead > of the plugin) > > ++ COil -- If you want to report a vulnera

[symfony-users] Re: Help with sfDoctrineGuardPlugin

2011-01-05 Thread dmitrypol
I used this in my default/indexSuccess.php if(!$sf_user->isAuthenticated()) echo "get_component('sfGuardAuth', 'signin_form'); I also made the frontend app secure in security.yml and then modified sfDoctrineGuard Auth, ForgotPassword and Register modules secure false. Dmitry -- If y

[symfony-users] Re: [Symfony2] Many questions (cache, Doctrine)

2011-01-05 Thread Derek ROTH
In an EntityRepository: http://docs.symfony-reloaded.org/master/guides/security/users.html?highlight=entityrepository -- 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 G

[symfony-users] Help with sfDoctrineGuardPlugin

2011-01-05 Thread sinu govind
I want to embed the login form of the DoctrineGuardPlugIn into my layout.php. I could do this with the following code in layout.php. $class = sfConfig::get('app_sf_guard_plugin_signin_form', 'sfGuardFormSignin'); $form = new $class();?>

[symfony-users] Re: How to insert multiple records with just one save() function call

2011-01-05 Thread mohdshakir
I found an example in the internet, and my code finally looks like this; $connection = sfContext::getInstance()->getDatabaseManager()- >getDatabase('default')->getDoctrineConnection(); $connection->beginTransaction(); try { while ($data = $reader->read()) { // some logics here $np

[symfony-users] Re: How to insert multiple records with just one save() function call

2011-01-05 Thread mohdshakir
I'm not used to transaction, but will search for it and give it a try. Thanks, and I'll come back here if I hit another brick wall :D On Jan 4, 9:07 pm, Ramunas wrote: > Hi, > > Try to use transactions. Things usually goes faster when you add all > of your records in one transaction and then com

Re: [symfony-users] [Symfony2] Application transaction question

2011-01-05 Thread Gareth McCumskey
Perhaps your best bet for this kind of system is to create some kind of web services API on the other applications (REST, SOAP, whatever floats your boat). Then when you create an entity and need to notify these other apps you can do so directly by targetting their web services API and notifying th