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

2011-01-03 Thread Gareth McCumskey
Email is not reliable. Its as simple as that. The reason I say this however is that when you rely on systems outside of your control, such as mail servers because remember, the recipients mail server also needs to be fully functional, you need to bear in mind that reliability is very likely. All y

[symfony-users] Re: PHP 5.3.x on Leopard

2011-01-03 Thread Julian Reyes Escrigas
all problems flyout with ./configure && make && make install :) thanks for all and i downloaded the last version from php.net the 5.3.4 -- 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 subscri

Re: [symfony-users] Re: PHP Intl extension

2011-01-03 Thread Tim Nagel
Turns out the pecl intl extension doesnt work with php 5.3, you'll need to compile PHP with intl. I had to install ICU4C on my mac to compile php with intl. t On Tue, Jan 4, 2011 at 10:10, Michael wrote: > when i run the command it asks me: "Specify where ICU libraries and > headers can be fo

[symfony-users] Re: PHP Intl extension

2011-01-03 Thread Michael
when i run the command it asks me: "Specify where ICU libraries and headers can be found [DEFAULT] :" do i need to install ICU? if yes, that should i do? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message becaus

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

2011-01-03 Thread elNiño
EM is simply available only in actions. Where should I put reusable functions that need EM? On Jan 3, 8:50 am, Tim Nagel wrote: > I'd also like to add that my impression of Doctrine 2 is that you > should not be doing activities inside the entity that need the entity > manager, that it is more 'a

[symfony-users] [Symfony2] Application transaction question

2011-01-03 Thread Gustavo Adrian
Hi all, I know is not a Symfony specific question but I was wondering how do you guys manage a situation like the following: . Create an entity and save it to the database . Save the log to a file or whatever resource the system has . Send an email to notify people involved with the entity that t

Re: [symfony-users] Re: Form not rendering with correct data from Boolean field.

2011-01-03 Thread Michał Piotrowski
2011/1/3 Scott O'Brien : > Thanks to damon__jones from the IRC channel, it fixes the problem if I swap > the order of items in the array. I used public static $yes_no_types = array( '0' => 'nie', '1' => 'tak', ); public static function getYesNo() { return self::$yes_no_types;

Re: [symfony-users] Form not rendering with correct data from Boolean field.

2011-01-03 Thread Michał Piotrowski
Hi, 2011/1/2 Scott O'Brien : > Howdy, I'm having trouble with one of my fields in a form.  I've got a > section of code in my form php > >   $isCitizen = array( > >             True => 'Yes', > >             False => 'No', > >     ); > >     $this->widgetSchema['citizenship'] = new sfWidgetFormCho

[symfony-users] Re: how to setDefault on i18n form field?

2011-01-03 Thread Michał Piotrowski
Hi, W dniu 20 grudnia 2010 15:42 użytkownik Michał Piotrowski napisał: > Hi, > > I've got a field > echo $form[$lang]['title']->render() > > and I want to set default value. Usually I use setDefault, but this is > i18n form so > $form->setDefault('title', "random title") > doesn't work as for oth

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

2011-01-03 Thread Gustavo Adrian
I agree with this. If you need to pass an entity manager to an entity, maybe what you're really looking for is an active record implementation for Doctrine 2. Doctrator is one of them: http://mondongo.es/blog/9/doctrator-real-and-flexible-behaviors-for-doctrine2

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

2011-01-03 Thread Svetoslav Shterev
On Sun, 2011-01-02 at 21:12 -0800, Dennis Gearon wrote: > Is it very easy to specify a char column for a primary key in a symfony > table/object? > > Actually, it's probably easy to do, BUT will Symfony choke on acually USING > it? > By symfony, I assume you mean doctrine(symfony is not an orm

Re: [symfony-users] Best practice to allow for Action reuse?

2011-01-03 Thread Svetoslav Shterev
On Sun, 2011-01-02 at 23:47 -0500, Eric B wrote: > > Thanks for the tip. That's kind of what I was looking for. Ideally, > the great thing about Struts2 is that you can also put the action to > take based on the result in a config file, which completely separates > the workflow from the action.