Re: [symfony-users] Re: different form schema between applications

2010-10-07 Thread Andrei Dziahel
This approach makes your form untestable.

I'd suggest following scenario instead:

.
if ($this->getOption('is_backend', false) == false) {
  $this->widgetSchema['payment_type_id'] =
new sfWidgetFormSelect(array('choices' => $choices));
} else {
  $this->widgetSchema['payment_type_id'] =
new asWidgetFormSelectRadio(array('choices' => $choices));
}
...

On Thu, Oct 7, 2010 at 11:46, Christian  wrote:

>
> if (sfContext::getInstance()->getConfiguration()->getApplication() ==
> 'backend) {
>$this->widgetSchema['payment_type_id'] = new
> sfWidgetFormSelect(array('choices' => $choices));
>} else {
>$this->widgetSchema['payment_type_id'] = new
> asWidgetFormSelectRadio(array('choices' => $choices));
>}
>
>
> hope this help u
>
>
> On 7 Okt., 03:10, Andrei Dziahel  wrote:
> > Hi.
> >
> > So why not to create 2 separate form classes which extend BaseVideoForm
> (or
> > VideoForm — depends of your needs and ), fill their configure()method
> with
> > application-specific code and use  both in appropriate applications?
> >
> >
> >
> > On Thu, Oct 7, 2010 at 01:55, Manu SW  wrote:
> > > Hi,
> >
> > > Sorry if this is a n00b question ...
> >
> > > I would like to use the same form in both frontend and backend
> application
> > > but I would need to change some widget types, depending on the
> application I
> > > am using the form.
> >
> > > For example I have the form definition:
> >
> > > class VideoForm extends BaseVideoForm
> > > {
> > >  public function configure()
> > >  {
> > >   parent::setup();//pkWidgetFormInputFilePersistent
> > > //pkValidatorFilePersistent
> > >   $this->setWidgets(array(
> > > 'object_id'=> new sfWidgetFormInputHidden(),
> > > 'user_id'  => new sfWidgetFormInputHidden(),
> > > 'media_file'   => new sfWidgetFormInputFile(array(
> > >   'label' => 'Mi Video',
> > >   //'file_src'  =>
> > > '/uploads/media/'.$this->getObject()->getMediaFile(),
> > >   //'is_image'  => false,
> > >   //'edit_mode' => false,
> > >   //'template'  => '%input%',
> > >   )),
> > > 'is_stream'=> new sfWidgetFormInputHidden(),
> > > 'date_created' =>  new sfWidgetFormInputHidden()
> > >   ));
> > > 
> >
> > > I this definition is fine for the frontend definition but I would like
> to
> > > change the 'object_id' and 'user_id' to be a sfWidgetFormChoice when I
> use
> > > the form in the backend application.
> >
> > > Any idea or pointer someone could give me about the best way to achieve
> > > that?
> >
> > > (that's an app I am maintaining in symfony 1.2.5)
> >
> > > Thanks !
> > > M.
> >
> > > --
> > > 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@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > symfony-users+unsubscr...@googlegroups.com
> 
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/symfony-users?hl=en
> >
> > --
> > With the best regards, Andrei.
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
With the best regards, Andrei.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] different form schema between applications

2010-10-06 Thread Andrei Dziahel
Hi.

So why not to create 2 separate form classes which extend BaseVideoForm (or
VideoForm — depends of your needs and ), fill their configure()method with
application-specific code and use  both in appropriate applications?

On Thu, Oct 7, 2010 at 01:55, Manu SW  wrote:

> Hi,
>
> Sorry if this is a n00b question ...
>
> I would like to use the same form in both frontend and backend application
> but I would need to change some widget types, depending on the application I
> am using the form.
>
> For example I have the form definition:
>
> class VideoForm extends BaseVideoForm
> {
>  public function configure()
>  {
>   parent::setup();//pkWidgetFormInputFilePersistent
> //pkValidatorFilePersistent
>   $this->setWidgets(array(
> 'object_id'=> new sfWidgetFormInputHidden(),
> 'user_id'  => new sfWidgetFormInputHidden(),
> 'media_file'   => new sfWidgetFormInputFile(array(
>   'label' => 'Mi Video',
>   //'file_src'  =>
> '/uploads/media/'.$this->getObject()->getMediaFile(),
>   //'is_image'  => false,
>   //'edit_mode' => false,
>   //'template'  => '%input%',
>   )),
> 'is_stream'=> new sfWidgetFormInputHidden(),
> 'date_created' =>  new sfWidgetFormInputHidden()
>   ));
> 
>
>
>
> I this definition is fine for the frontend definition but I would like to
> change the 'object_id' and 'user_id' to be a sfWidgetFormChoice when I use
> the form in the backend application.
>
> Any idea or pointer someone could give me about the best way to achieve
> that?
>
> (that's an app I am maintaining in symfony 1.2.5)
>
>
> Thanks !
> M.
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
With the best regards, Andrei.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] IDE

2010-09-03 Thread Andrei Dziahel
Hi.

For free — Netbeans, commercial — PHPStorm.

2010/9/3 |-|@|\/|||) 

> I need IDE for symfony. please introduce IDE for symfony.
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
With the best regards, Andrei.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] a good IDE for Symfony

2010-08-10 Thread Andrei Dziahel
Hi.

My choice is JetBrains' PHPStorm. If you want *free* IDE — I'd recommend
NetBeans.
Both are written in Java, but it's not a problem *for me* — on Linux (Ubuntu
Lucid) with 4G RAM installed both are fast as hell.

2010/8/4 Julian Reyes Escrigas 

> Hi
>
>
>
> I need help for find a new editor for PHP, I’m using Netbeans 6.9 but I
> don’t know for what is slow, always start very well but when the project
> grows it’s turns unstable
>
>
>
> I need only 3 characteristics
>
> 1.   Faster and lightweight
>
> 2.   With autocomplete for all classes in a folder and include folders
>
> 3.   Support for PHP, html, CSS, JavaScript and YAML (auto colored,
> syntaxes and turn tabs into spaces )
>
>
>
> Some one knows any similar NO JAVA editor.
>
>
>
> I use Windows 7 64bits, have AMD Phenom II X4 965 3.4Ghz, 6Gb DDRIII, and
> SATAII HD
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
With the best regards, Andrei.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] sfLucene with Symfony 1.4 + Doctrine?

2010-06-29 Thread Andrei Dziahel
Hi.

Yes, it's possible. I've attached a patch

2010/6/29 Ricardo Jose Guzman Milanes 

> Hello
>
> I would like to know if this integration is possible.
>
> I did this:
> http://forum.symfony-project.org/index.php/t/24560/
>
> And it's giving me an sfloader class not found error.
>
> After some search in Google I found this by Fabien
>
> http://www.devcomments.com/sfLoader-deprecated-but-not-in-the-docs-at23435.htm
>
> I need to implement an search engine in my proyect.
>
> If sfLucenePlugin can't be used. what would you recommend me to use?
>
> Thanks for your help.
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
With the best regards, Andrei.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


sfLucenePlugin.sfloader_issue.patch
Description: Binary data


Re: [symfony-users] Colum alias in an aggregate query / Doctrine

2010-04-17 Thread Andrei Dziahel
hi.

->select('MAX(v.rang) AS max_rang, v.*') should do the job.

Alias "is not set" because there's nothing to "attach" alias to. Because
only *one* column is fetched by SELECT — an *aggregate column itself*.

2010/4/17 NOOVEO - Christophe Brun 

>  After the Doctrine documentation,
> http://www.doctrine-project.org/documentation/manual/1_2/en/dql-doctrine-query-language:select-queries:aggregate-values
> I'm trying a query like this :
>
> $vp = Doctrine_Query::create()
>   ->select('MAX(v.rang) AS max_rang')
>   ->from('VitrineParagraphe v')
>   ->where('v.vitrine_id = ?', $vitrineId)
>   ->execute();
>
> The executed query, is after the logs :
> SELECT MAX(v.rang) AS v__0 FROM vitrine_paragraphe v WHERE (v.vitrine_id =
> ?) - (17)
>
> and of course, the further $vp->max_rang used to retrieve the desired value
> fails.
> Any ideas why the alias is not set ?
>
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
With the best regards, Andrei.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Event dispatcher: Update front app template

2010-04-08 Thread Andrei Dziahel
Hi.

For exactly this purpose you have to use some sort of interprocess messaging
queue, like ApacheMQ or whatever. Because simple sfEventDispatcher::notify()
calls just won't work in a way you want (I'm too lazy to explain, why).

2010/4/7 Dong YANG 

> Hello guys,
>
>I have a question about event dispatcher, i would like to know if i
> am in the right direction.
>
>My application has an API for client call, when one call is
> executed, i need to show sth in front. For doing this, i tried to use event
> dispatcher in my API class.
>
>For example:
> *   // lib/api.class.php*
>class API {
>   public function updateInfo(){
>  * // do some stuff
>  // launch event for updating front office*
> $event = new sfEvent($this,
> 'foo.update_front_office',
> array(
> 'message' =>
> 'update'
> )
>   );
>  $this->dispatcher->notifyUntil($event);
>   }
>}
>
>But I think that the listeners for event dispatcher are always class
> in lib directory and what i want is to call one method in *action/componen
> *t class in order to update my template. Is there any way to do what I
> want by using event dispatcher or i should do this in another way?
>
> Any suggestion is welcomed.
>
> Thanks and Regards,
>
> JoJo
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
With the best regards, Andrei.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: [symfony-users] (Doctrine) "as" keyword doesn't work as expected. Can't figure out a query :(

2010-03-10 Thread Andrei Dziahel
Hi.

WHERE statement is not applicable to calculated columns. Use HAVING instead.

2010/3/10 miguelSantirso 

> Hi, I have a starts_at field that keeps the date in which certain event
> starts or has started (in UNIX seconds). Also, I have a minutes_long field.
> I need to filter all the objects that are already finished and I tried
> adding the following to my original query:
>
> $q->addSelect('c.starts_at + c.minutes_long*60 AS finishes_at');
> $q->addWhere("finishes_at >= ?", time());
>
> However, Doctrine doesn't seem to recognise "finishes_at" in the "addWhere"
> statement. I don't know if this is the expected behavior of Doctrine. If so,
> how could I write an equivalent query?
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
With the best regards, Andrei.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Tool for sketching mockups?

2010-02-19 Thread Andrei Dziahel
Hi.

Well, there's similar one — Mockingbird (http://gomockingbird.com/).

2010/2/19 Eno 

> Recently, there was a thread where someone asked about the tool used to
> draw the screens used in the Jobeet tutorial (
> http://www.symfony-project.org/jobeet/1_2/Doctrine/en/02).
>
> I have a sudden need to use a tool like that - anyone remember what it was
> called?
>
> --
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>


-- 
With the best regards, Andrei.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] How may I add HTML code to a generated form field ?

2010-02-10 Thread Andrei Dziahel
Hi.

You have to write your own form widget (let's call them
sfWidgetFormInputButtonized) and then in yourForm::configure() call
$this->widgetSchema['external_id'] = new sfWidgetFormInputButtonized();

I'd also recommend to inherit your widget from sfWidgetFormInput. It will
save a bit of your time.

2010/2/10 NOOVEO - Christophe Brun 

> I'm still working on a backend form of my app. The form has several input
> fields, one of them allows the user to type an identifier pointing
> to an object stored on an external database. Let's call this field
> ExternalId (string 25). Now, I have to add a button after the input field to
> allow the user to
> click it and to check whether the identifier is valid or not (plus some
> other stuff...).
>
> I checked the _form_field.php partial for this Form but I don't see how I
> can customize my field. I also checked the sfWidget but I still don't ctach
> the point. If somebody could point me to the right direction, I may save a
> lot of time.
>
> NB : the form I'm customizing is also used as embedded form. The button
> shall be added on both flavours of the form.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>


-- 
With the best regards, Andrei.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Doctrine data-load out of memory (Ticket #7733)

2010-02-03 Thread Andrei Dziahel
Hello.

I did. Fixtures' size was ~400kb total. Symfony 1.2, Doctrine 1.0. I had to
increase memory_limit to (IIRC) 128Mb.

This issue looks for me pretty easy-explainable. Doctrine_Import currently
is actually forced to store ALL the objects recreated from fixtures in
memory while importing because there can be links to them. Probably there
should be some kind of preprocessing, to figure which
Doctrine_Recordinstances can be safely
free()d after save()ing.

2010/1/31 Brandon Turner 

> Hello all,
>
> I've been using data fixtures more and more in my Symfony 1.4.1 project and
> have run up against an out-of-memory error when loading data via the
> doctrine:data-load task.  My PHP CLI memory_limit is currently set at 32MB.
>  I've got about 112KB of YAML fixture markup spread across 5 files.
>
> Ticket #7733 (http://trac.symfony-project.org/ticket/7733) describes the
> problem I'm having.  For the short term I have increased my CLI memory_limit
> to 64MB.
>
> Does anyone use data fixtures for more than just a few fields?  Has anyone
> else experienced this error or have a suggestion for a fix?
>
> Thanks,
> Brandon
>
> --
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>


-- 
With the best regards, Andrei.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-01 Thread Andrei Dziahel
Hi.

Enable sfPropelPlugin in ProjectConfiguration.class.php.

2010/2/1 maxxyb 

> Hi
>
> I am trying to upgrade my Symfony project and am having problems with
> the Propel portion of the upgrade.  For some reason I can see no
> Propel tasks in the Available Tasks list when I used the command
> "symfony list".
>
> Can anyone tell me what I may be doing wrong?
>
> I have tried to upgrade to both 1.2 and to 1.3 with the same result.
>
> --
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>


-- 
With the best regards, Andrei.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Symfony builts old tables that are not declared in schema.yml

2010-01-30 Thread Andrei Dziahel
Hello.

You forgot to remove autogenerated classes from lib/(model|form|filters) and
base classes too.

Call doctrine:clean-model-files task if you're using Doctrine or delete
obsolete classes manually if you are using propel. Another way is to remove
all base classes, regenerate them and delete classes mentioned in fatal
errors which will follow after that.

2010/1/30 Johannes Trommer 

> Hello,
>
> While developing an application with symfony one table became dispensable.
> I removed it from schema.yml, cleared the cache and ran "symfony
> doctrine:build --all --and-load --no-confirmation".
> After that the removed table still appears in my database. How can I fix
> this?
>
> Thanks in advance!
>
> --
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>


-- 
With the best regards, Andrei.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] execute module through php command line

2009-12-28 Thread Andrei Dziahel
Hi.

You are doing it wrong. Extract these functions to dedicated tasks and run *
them* with cron or whatever.

Nevertheless, you still can shoot yourself in a foot by putting into cron
something like

> ...time...  curl 
>

2009/12/28 Joshua 

> I've set up a module in my frontend application and the actions.class.php
> has different functions intended to be run in a cron. I can run these
> functions in the browser by going to the path
> domain.com/cron_module/function
>
> How can I set this up command line so a cron can run these functions?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>


-- 
With the best regards, Andrei.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




Re: [symfony-users] Re: Netbeans with symfony support: tasks without "sudo"

2009-12-27 Thread Andrei Dziahel
I'm storing my sources in home directory. Also I've added myself to www-data
group. This allows me to avoid sudoing symfony.

2009/12/27 tirengarfio 

> The only way i know to avoid writing "sudo" is logging in the
> operative system as root. But i dont want to logging as root.
>
> Is there anyone more?
>
>
> On Dec 27, 8:01 pm, Andrei Dziahel  wrote:
> > Hi.
> >
> > Do not call them with sudo. Like I do.
> >
> > 2009/12/27 tirengarfio 
> >
> >
> >
> > > Hi,
> >
> > > i have installed Netbeans with symfony support.
> >
> > > As maybe you know with this support you can execute the symfony tasks
> > > from Netbeans.
> >
> > > The problem: the tasks are executed without the "sudo" before, so the
> > > errors appear..
> >
> > > Any solution?
> >
> > > Bye
> >
> > > Javi
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "symfony users" group.
> > > To post to this group, send email to symfony-us...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > symfony-users+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/symfony-users?hl=en.
> >
> > --
> > With the best regards, Andrei.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>


-- 
With the best regards, Andrei.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




Re: [symfony-users] Netbeans with symfony support: tasks without "sudo"

2009-12-27 Thread Andrei Dziahel
Hi.

Do not call them with sudo. Like I do.

2009/12/27 tirengarfio 

> Hi,
>
> i have installed Netbeans with symfony support.
>
> As maybe you know with this support you can execute the symfony tasks
> from Netbeans.
>
> The problem: the tasks are executed without the "sudo" before, so the
> errors appear..
>
> Any solution?
>
> Bye
>
> Javi
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>


-- 
With the best regards, Andrei.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




Re: [symfony-users] Re: Discount Code for Symfony Users - Perq - A Symfony Powered Website

2009-12-18 Thread Andrei Dziahel
Hi.

I think it's http://www.perqworks.com/

2009/12/18 Matt Robinson 

> On Dec 17, 6:30 pm, CA  wrote:
> > The application, which is for small business people to track employee
> > paid time off, may or may not be right for you, but I wanted to give
> > back some way I could.
> >
> > Use SYMFONY50 and receive 50% off for six months.
>
> I've got a question - what's the URL? :)
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>


-- 
With the best regards, Andrei.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




Re: [symfony-users] enum in config/schema.yml

2009-12-15 Thread Andrei Dziahel
Hi.

2009/12/15 

> Could I do a enumeration in the file schema.yml?
>
Yes (in Doctrine, at last).

> In other words, I need the attribute authors like a enumeration of ids.
> This ids would be foreign keys of the entity person or something like that.
> How can I do it?
>
No, you can't. Why not just create regular Many2Many relation instead? It's
more efficient and straightforward way.

>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>


-- 
With the best regards, Andrei.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[symfony-users] Re: Why "Remember Me" stores the IP in the database?

2009-10-19 Thread Andrei Dziahel
Hi.

Well, IP check *should* work. It looks like a bug. Which version? For Propel
or Doctrine?

2009/10/19 HiDDeN 

>
> I have tested this:
>
> - I logged in marking the "remember me" option.
> - I closed the browser
> - I changed the IP field in the sf_guard_remember_key table
> corresponding to my user
> - I reopened the browser with the same url as before, and the session
> continued
>
> So, I can't yet understand why is it saving the IP...
>
>
> On 19 oct, 14:38, Eno  wrote:
> > On Mon, 19 Oct 2009, HiDDeN wrote:
> > > I have a simple question: why is the "remember me" feature storing the
> > > user IP in the database?
> >
> > > If I logout, change my IP, and login again, it is yet working well,
> > > so... why is it storing the IP?? I can't understand it.
> >
> > Maybe so noone can hijack the session perhaps?
> >
> > --
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to know if an object has been modified

2009-10-06 Thread Andrei Dziahel
Hi.

Use 
isModifiedmethod.

2009/10/2 Ignacio Bergmann 

> Hello, this is my first message to the list... hope it isn't a silly
> question.
>
> I'm using Doctrine, and I have a class in my model which has a field that
> stores the name of a file (a picture).
>
> I have automated the deletion of those files when the corresponding record
> is delete using the postDelete method.
>
> Now, I want to automate the deletion of old files when they are changed for
> a new one. For this I was trying to use preSave and postSave methods, but I
> need to know if the 'file' field of my object is different of the one stored
> in the database.
>
> I have tried using the getModified method, but it gives me the new value of
> the field, instead of the old one. Also, the getLastModified method that the
> Doctrine documentatios suggests doesn't exist.
>
> I'm trying to implement this in the class definition of the object instead
> of implementing it on the form definition file, I think this is were this
> kind of task belong, but I might be wrong (I made it work overriding the
> doSave method of the form, but I still want to move it to the class).
>
> I'm open to suggestions. Thanks,
>
> Nacho
> http://card.ly/nachocual
>
>
>
> My code (that doesn't work):
>
> class Mascotas extends BaseMascotas
> {
>   var $cambios;
>   public function preSave($event)
>   {
> $this->cambios = $event->getInvoker()->getModified(true);
>   }
>
>   public function postSave($event)
>   {
> if($this->cambios['foto1'])
>   {
> $this->deletePictures($this->cambios['foto1']);
>   }
>   }
> }
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-24 Thread Andrei Dziahel
Hi.

So what's wrong with components? Can't your designer learn to look into
apps//modules//templates/_.php
when encountering 
or what?

2009/9/24 bghost 

>
> This is generated HTML code that I got after inserting the language
> component within a table cell:
>
> 
>
> where component 'language' is a component that uses Symfony WEB forms:
> (from Jobeet tutorial):
>
>
> 
>   type="hidden">
> 
> 
> 
> 
>  Language
>  
> English
> French
> 
>
> This is nightmare for all WEB designers.
>
> WBR,
> Ghost3D
>
> On Sep 24, 11:32 am, Matt Robinson  wrote:
> > On Sep 23, 12:29 pm, bghost  wrote:
> >
> > > First:
> > > [..] So you complicate some tasks in the Symfony
> > > framework that already was simple and good.
> >
> > Well, that's certainly an opinion.
> >
> > > Second:
> > > Almost 90% of the code that generates the Symfony framework
> > > developer need to modify or re-write
> >
> > If the generated CRUD isn't helpful, don't use it. It's a tiny part of
> > the framework that has a very specific use. You're complaining that
> > your swiss army knife is rubbish because the corkscrew is a really bad
> > tool for cutting string.
> >
> > > Third:
> > > The result of all this is a complex directory structure, many empty
> > > classes that only contain a skeleton and just inherits one of the base
> > > classes, and finally the CRUD code that always must be re-written.
> >
> > It's not complicated, it's deep. The rules are very simple. So what if
> > you don't need the base-class inheritance style for 90% of the time?
> > It doesn't stop you doing anything else, it isn't slower, and when you
> > need it, it's really, really nice to have. You're complaining that
> > some things are complicated, but refusing to learn why. Don't wave
> > your ignorance around as if it's somehow a good thing; it's offensive.
> >
> > > And to get all that, the programmer must learn a bunch of different
> > > configuration and command line options.
> >
> > Can, not must.
> >
> > > And when a programmer, after a painstaking setup and configuration
> > > of various options and parameters, finally gets the generated code,
> > > he must re-write 90% of the generated code.
> >
> > I call bullshit, sir. You're on a mailing list *full* of people who
> > are proof that this is a lie.
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Andrei Dziahel
Hi.

Well, for me essence and purpose of symfony is to reduce efforts while
developing and adjusting complicated and mid-size to large applications.
According to my experience, symfony does this job almost perfectly. And yes,
I've once tried to build wordpress-like blog with symfony, but abandoned it,
since Tumblr and Disqus fit my needs.

2009/9/18 bghost 

>
> It is necessary to invest so much effort to do a relatively simple
> application.
> Productivity and profitability of such work is very questionable.
>
> So, Symfony - Goodbye
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: static pages module

2009-09-14 Thread Andrei Dziahel
hi.

symfony generate:module

Actually, you'd find it much faster, if you'd examined output of
./symfonycommand line by line.

2009/9/14 Mihai RUSOAIE 

>
> Hello!
>
> Thanks for the quick reply. How can I generate a module without a model?
>
> -bash-3.2$ ./symfony propel:generate-module frontend static
>
>
>  The execution of task "propel:generate-module" failed.
>  - Not enough arguments.
>
>
> symfony propel:generate-module [--theme="..."] [--generate-in-cache]
> [--non-verbose-templates] [--with-show] [--singular="..."] [--plural="..."]
> [--route-prefix="..."] [--with-propel-route] [--env="..."] application
> module model
>
>
> Mihai Rusoaie
> e-Business Consultant
> Mobile: +40 72 RUSOAIE
> Web: http://mihai.rusoaie.com
> - Original Message -
> From: "Gábor Fási" 
> To: 
> Sent: Sunday, September 13, 2009 9:50 PM
> Subject: [symfony-users] Re: static pages module
>
>
>
> Just like any other module: your modules need not represent your
> models. Just create a new module, and don't use any models there :)
>
> Gábor
>
> On Sun, Sep 13, 2009 at 18:47, Mihai Rusoaie  wrote:
> >
> > Hello!
> >
> > I am following the tutorial for creating static pages at
> > http://trac.symfony-project.org/wiki/HowtoServeStaticContent
> >
> > My question is: how can I generate a module without a model (for the
> > static module I don't need a model, do I)?
> >
> > Thank you!
> >
> > Mihai Rusoaie
> > e-Business Consultant
> > Mobile: +40 72 RUSOAIE
> > Web: http://mihai.rusoaie.com
> > >
> >
>
>
>
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: No release available for plugin "csDoctrineActAsAttachablePlugin"

2009-09-07 Thread Andrei Dziahel
Hi.

Download it from
http://plugins.symfony-project.org/get/csDoctrineActAsAttachablePlugin/csDoctrineActAsAttachablePlugin-1.0.1.tgz,
save it somewhere and try to

symfony plugin:install
path/to/plugins/csDoctrineActAsAttachablePlugin-1.0.1.tgz

Should work.

2009/9/7 SNake! 

>
> Hi guys,
>
> I think csDoctrineActAsAttachablePlugin is really a great plugin, but
> I have some problem to install it:
>
>
> $ ./symfony plugin:install csDoctrineActAsAttachablePlugin
> >> plugininstalling plugin "csDoctrineActAsAttachablePlugin"
>
>
>  No release available for plugin "csDoctrineActAsAttachablePlugin"
>
> I am sure my sf is 1.2, and it is said that sf1.2 is supported.
>
> any idea?
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfDoctrineActAsTaggablePlugin question

2009-09-02 Thread Andrei Dziahel
Hi.

Have you tried to pass to getPopulars() a query similar to this one?

> $q = Doctrine_Query::create()->from('Article a')->where('a.active = ?',
> true);
>

2009/9/1 Kevin Bond 

> Hi Guys,
>
> I have a question about this plugin for anyone who knows about it.
>
> I have an Article model that I have set as Taggable.  The article model has
> an 'active?' column.  When selecting tags (ie using TagTable::getPopulars) I
> only want tags that are attached to active Articles to be returned.
>
> I see the getPopulars method has the option to add a doctrine query but I
> can't seem to figure out how to get it to work.  The documentation shows
> that it can be done (I think) but it hasn't been translated from propel to
> doctrine yet.
>
> Anyone know how to do this?
>
> --
> Kevin
>
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: app.yml nested settings dont work

2009-08-25 Thread Andrei Dziahel
Hi.

You should print_r('app_thumbshot')

Look into web debug toolbars' config section first.

2009/8/25 mintao 

>
> I may understood sth wrong, but here's my problem:
>
> app.yml:
> 
> all:
>  .thumbshots:
>thumbshot:
>  path: images/thumbs
>  quality : 75
>  max_age: 30
>  delay: 20
>  screenx: 1024
>  screeny: 768
>  optimize: true
>  services:
>artviper:
>  # GET paremter definitions
>  width: w
>  height: h
>  delaytime: d
>  screenx: sdx
>  screeny: sdy
>  username: userID
>  password: email
>  siteurl: url
> 
>
> print_r( sfConfig::get('app_thumbshot_services_artviper_width') );
>
>
> RESULT: nothing.
>
> What a I doing wrong? Is there a maximum level for nested settings?
>
> PS: The leading spaces are double checked and ok.
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfWidgetFormDoctrineChoice with i18n

2009-08-17 Thread Andrei Dziahel
Hi.

Here is an excerpt from my blablaForm::setup():

> $this->setWidget('country',
>   new sfWidgetFormDoctrineSelect(array('model' => 'Country',
>   'query' => Doctrine::getTable('Country')->
> createQuery('c')->leftJoin('c.Translation ct')->orderBy('c.order DESC,
> ct.name ASC';
>


2009/8/18 afilina 

>
> Could you please demonstrate how to use this method? I didn't find
> anything useful in the documentation to help me. Say I want to get a
> list of products with their names from within my controller.
>
> Thanks,
> Anna
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfWidgetFormDoctrineChoice with i18n

2009-08-16 Thread Andrei Dziahel
Hi.

1. No, it doesn't.
2. Yes, you can -- just pass your own query to widget using its "query"
option. And, by magic implemented in
sfDoctrineRecordI18nFilter::filterGet(), all the values become localized
automatically.

2009/8/17 afilina 

>
> I have a model generated with Doctrine named Product that has i18n. Now I
> need to use the list of products as a dropdown in my form. I use
> sfWidgetFormDoctrineChoice. This works great: I specify the model name and
> it does everything for me. It even gets the name of the product based on the
> current culture.
>
> The problem is that it executes a DB query for every single Product in
> order to get the name. I know that it can be easily solved with a LEFT JOIN.
> I tried this query to manually get a list of products:
>
> Doctrine_Query::create()->from('Product p')->leftJoin('p.ProductTranslation
> pt')->execute()
>
> When I look at the model generated with Doctrine
> (lib/model/doctrine/base/BaseProduct.php), I see that all relations are
> defined using $this->hasMany(...), whereas the translation is defined using
> $this->actAs($i18n0), leaving me no way to refer to it in my leftJoin.
>
> So I have 2 questions:
> 1. Does sfWidgetFormDoctrineChoice support i18n?
> 2. If not, how can I select my products + translations with only one query?
>
> Thanks,
> Anna
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: class loading

2009-08-07 Thread Andrei Dziahel

Hi.

No, you didn't. You've simply extnded base actions' class provided by plugin.


2009/8/7, cirpo :
>
> Hi, there's something i can't understand about class loading.
>
> Scenario:
> - symfony 1.2
> - sfDoctrineGuardPlugin
>
> As written in the sfDoctrineGuardPlugin README, you can customize
> sfGuardAuth module actions creating a sfGuardAuth module and the
> corresponding action. I did that and create some new methods in that
> action.
> What i can't understand is that sfGuardAuthActions has the methods i
> defined plus the method defined in the sfDoctrineGuardPlugin... one
> class merged from two classes with the same name?
>
> how can it be possible?
> cirpo
> >
>

-- 
Отправлено с моего мобильного устройства

With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: symfony extensible model for other data source than default ORM (API, SOAP WS, CouchDB...)

2009-08-04 Thread Andrei Dziahel

Hi.

Take my +1 too.

Regards.

2009/7/31, JP :
>
> Hi,
>
> In symfony 1.2, I can only create models using one of the 2 ORMs
> Doctrine or Propel. Each of the 2 plugins implements some tasks for
> generating an admin backend, creating fixture data, some input
> validation.
>
> Now let's say I want to use a different data source, that is not a
> database covered by the ORMs, for example:
> - a web API (twitter, last.fm, flickr, salesforce.com ...)
> - a SOAP web service
> - a datastore like CouchDB
>
> I believe that if I want to use one of those, I'll have to build or
> find a plugin similar to sfPropelPlugin or sfDoctrinePlugin to access
> the data source. In case my datasource provides CRUD functionnality, I
> might want to generate an admin interface, which means creating a
> generator and maybe duplicating code with the default ORMs admin
> generator.
>
> Another approach would be to have a set of datasource agnostic model
> classes that will provide feature such as an admin generator, input
> validation, fixture import and an interface to the datasource. This
> will allow developers to create custom models for various datasource
> and not be restricted to databases.
>
> I believe this feature is similar to DataSources in CakePHP or to the
> ActiveModel planned for Rails 3. I've also been using that pattern
> other the past couple years in a custom PHP framework that is used for
> a web app using a SOAP backend. I work on daily basis with SOAP
> developers (on new features for instance), where I need to start
> building my webapp sometimes before the web service is ready. In this
> case I create my model class and use a datasource yaml (which will be
> a simple yaml file with dummy data) and when the web service is ready,
> I just have to switch the datasource. This allows me to not wait and
> be able to develop features in parallel with the backend.
>
> So, I was wondering what is the approach taken by symfony for this
> particular use case? Is there any plan on the roadmap for 1.3 or 2.0
> to provide a unified model layer that will allow developers to use
> custom data sources?
>
> Thanks!
>
>
> >
>

-- 
Отправлено с моего мобильного устройства

With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: doctrine : how to make an table alias with the same main table ?

2009-07-15 Thread Andrei Dziahel
Hi.

Of course there's no alias named FileType, since nor you, nor
NestedSetTemplate does not define it. According to your query, it looks like
$q->fetchTree()instead of $q->execute() will fit you needs.

2009/7/15 Olivier LOYNET 

>  Hi,
>
>
>
> I’ve the following SQL query working well to get all the ancestor id on a
> nested set
>
>
>
>   SELECT ft2.id
>
>   FROM  file_type AS ft
>
>   LEFT JOIN file_type AS ft2 ON (ft.lft BETWEEN ft2.lft   AND  ft2.rgt)
>
>   WHERE ft.id IN (4,5,10)
>
>   ORDER BY ft2.lft
>
>
>
> The YAML schema is :
>
>
>
> FileType:
>
>   tableName: file_type
>
>   actAs:
>
> NestedSet:
>
>   hasManyRoots: true
>
>   rootColumnName: root_id
>
>   columns:
>
> id: { type: integer(4), primary: true, autoincrement: true }
>
> name:   { type: string(255)}
>
>
>
>
>
> When I try to transform the query in Doctrine, I’ve always an error like
> « Unknown relation alias FileType » or else
>
>
>
> $q = $this->createQuery('ft')
>
>   ->leftJoin ('ft.FileType  ft2 ON (ft.lft BETWEEN ft2.lft  AND
> ft2.rgt)')
>
>   ->orderBy('ft2.lft');
>
>   ->whereIn('ft.id', array(4,5,10) )
>
> $q->execute();
>
>
>
>
>
> So I try to make an alias in the schema.yml, but I don’t find a good
> solution.
>
> Any idea is welcome.
>
>
>
> Regards,
> Olivier
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Install Plugin manualy

2009-06-30 Thread Andrei Dziahel
Hi.

You can symfony plugin:install path/to/downloaded/plugin/archive.tar.gz and
it should become installed.

2009/6/30 seifolah Ghaderi 

> Hi .
> I Want to add plugin manually ,I see some plugin contains some folder and
> module.
> I Download some symfony plugin and extract it.But it contains only one
> file.
> What's problem?
>
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Install Plugin manualy

2009-06-30 Thread Andrei Dziahel
Hi

2009/6/30 Sid Bachtiar 

>
> What is that one file? If it is .tar.gz, then you need to extract it. It's
> like zip file.

Looks like he extracts .gz and gets one .tar file :)

>
>
> On Tue, Jun 30, 2009 at 7:54 PM, seifolah Ghaderi
> wrote:
> > Hi .
> > I Want to add plugin manually ,I see some plugin contains some folder and
> > module.
> > I Download some symfony plugin and extract it.But it contains only one
> file.
> > What's problem?
> >
> >
> > >
> >
>
>
>
> --
> Blue Horn Ltd - System Development
> http://bluehorn.co.nz
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: doctrine errors.

2009-06-21 Thread Andrei Dziahel
Hi.

Can we take a look at your schema?

2009/6/20 Rajat 

>
> Hello All,
> I keeping getting these errors
> when i do the std doctrine:build-all-load
>
> >> doctrine  Could not create database for c...logrollplease'; database
> exists
> >> doctrine  generating model classes
> >> doctrine  generating sql for models
>
> Warning: stripos() expects parameter 1 to be string, array given in /
> home/rp/websites/blog-admin/trunk/lib/vendor/symfony/lib/plugins/
> sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Table.php on line 994
>
> Notice: Array to string conversion in /home/rp/websites/blog-admin/
> trunk/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/
> doctrine/Doctrine/Table.php on line 1011
>
> Notice: Array to string conversion in /home/rp/websites/blog-admin/
> trunk/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/
> doctrine/Doctrine/Table.php on line 1015
>
> has anyone come across these errors and/or knows of any suggested
> fixes for this.
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sf_data getRaw in partial

2009-06-19 Thread Andrei Dziahel
hi.

Can
$var->getRawValue()->get(6)->description
do the job?

2009/6/19 gimler 

>
> can i get a raw value in a partial with $sf_data?
>
> sample code:
>
> var is a doctrine collection
>
> this will work in the template but not in the partial?
> getRaw('var')->get(6)->description; ?>
>
> template i get:
> 
>
> partial i get:
> 
    > > > -- With the best regards, Andy. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---

[symfony-users] Re: Recommendations for affordable managed hosting that's Symfony 1.2-ready and secure

2009-06-18 Thread Andrei Dziahel
Hi, Tom.

Take a look at Dreamhost — it meets all your requirements. Regarding to
netpbm, pnmtopng etc. - I suppose you'll have to compile them yourself (if
they aren't installed already). But generally it takes only ./configure
--prefix=/home/username/ && make && make install. Yes, hoster allows this.

2009/6/18 Tom Boutell 

>
> Hi folks,
>
> We're looking for a solid hosting company that can meet these requirements:
>
> * PHP 5.2.6 or better (suitable for Symfony 1.2, with PDO/MySQL/gd all
> properly enabled)
> * The netpbm utilities are installed, or can be (pnmtopng and friends)
> * system() calls are permitted
> * The files of other clients are absolutely NOT visible in the file system,
> even if individual file permissions are "wrong"
> * The host takes responsibility for keeping standard operating system
> package items such as PHP, Apache, MySQL reasonably up to date and secure
>
> We're able to find all but the last of the above in "dedicated virtual"
> offerings from hostmysite, mediatemple, slicehost and other providers, but
> these hosts take a "hands-off"hy in the future - they
> don't take care of OS updates, so if there's a security hole in PHP you'd
> better update it yourself.
>
> "Shared hosting" offerings usually *are* managed in this way, however they
> generally either don't have current versions of PHP, don't allow system()
> and the netpbm utilities etc., or don't have chroot jail setups to prevent
> clients from seeing each other's files, especially when those files need to
> be written to by Apache (an aboslute requirement for Symfony, which writes
> PHP code out to cache files that are world-writable, so any Symfony site can
> be hacked trivially on such a host).
>
> Any recommendations for hosts that meet all of the above requirements?
>
> We'll probably wind up using one of the "dedicated virtual" options and
> making a standard practice of logging in to type "apt-get upgrade" on a
> regular basis, but it would be nice to find a managed host that took on that
> responsibility and still met the rest of the requirements.
>
> --
> Tom Boutell
> P'unk Avenue
> 215 755 1330
> punkave.com
> window.punkave.com
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: yaml config file array syntax

2009-05-08 Thread Andrei Dziahel
Hi.

Take a peek into web debug panel, "config" => "settings" => look for paypal
— and you'll eventually figure everything you ask for yourself.

2009/5/8 Steve the Canuck 

>
> I'm trying to retrieve the following as an array from my app.yml:
>
> app_paypal_postback_status
>
> I've tried the following configurations but neither works.  What I am
> I doing wrong?
>
> Thanks!
>
> all:
>  paypal:
>postback:
>  timeout: 30
>  status:
>.array:
>   new:  W
>   verified: V
>   invalid:  I
>   failed:   F
>
> I've also tried:
>
> all:
>  paypal:
>postback:
>  timeout: 30
>  .array:
>status:
>   new:  W
>   verified: V
>   invalid:  I
>   failed:   F
>
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: need advice: am switching from a Linux to a Windows development environment

2009-05-07 Thread Andrei Dziahel
Hi.

My company loaned me an laptop with preinstalled WinXP. I've just resized
windows' partition to free space for Linux et voilà!

2009/5/7 Jake Barnes 

>
>
>
> On May 6, 9:23 pm, Pablo Godel  wrote:
> > Have you considered running linux on vmware or virtual box?
>
> Yes, but I've read that is very slow?
>
> My preference would be to blank the harddrive and install Ubuntu on
> the laptop, but the laptop isn't mine, it is a company loan.
>
>
>
>
>
>
> > On Wed, May 6, 2009 at 9:18 PM, Jake Barnes 
> wrote:
> >
> > > I just searched the archives and was surprised not to see this issue
> > > come up more often.
> >
> > > I have, till now, done all my development work on Linux. I typically
> > > install symfony using pear. I'm used to the core files being stored
> > > here:
> >
> > > /usr/share/php/symfony
> >
> > > Now, for a month, I'm switching to a laptop running Windows XP. I've
> > > got the WampServer installed and PHP running.
> >
> > > I'm curious, though, where do people put the core Symfony files on a
> > > Windows machine?
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfGuardDoctrinePlugin admin problems with Timestampable

2009-05-05 Thread Andrei Dziahel
Hi.

Follow plugins' README first.

2009/5/5 maithili.k 

>
> Hi ken,can u please tell me the steps for implementing
> sfGuardDoctrinePlugin with symfony.I am new to symfony.I dont have
> any idea using plugins in symfony.Thnaks in advance.
>
> On May 3, 10:15 am, ken  wrote:
> > I'm using latest releases of symfony doctrine and
> > sfGuardDoctrinePlugin. Everything works fine except the Permission,
> > Group, and User objects when updated will replace both updated and
> > created with -00-00 00:00:00 instead of current time. I'm guessing
> > this has something to do with the Timestampable behaviour. Also when
> > validate type is on, doctrine throws notnull validation error.
> > Unfortunately I don't have enough expertise to deal with the
> > annoyance. This problem does not occur when the object is new.
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Customize created_at field in Propel

2009-05-04 Thread Andrei Dziahel
Hi.

Haha, I've already switched to Doctrine some months ago :)

2009/5/4 David Ashwood 

>  Not much help to your project but you can do it with the Timestampable
> behaviour in Doctrine.
>
>
>
> BlogPost:
>
>   actAs:
>
> # ...
>
> Timestampable:
>
>   created:
>
> name: created_date
>
> type: timestamp
>
>
>
>
>
> *From:* symfony-users@googlegroups.com [mailto:
> symfony-us...@googlegroups.com] *On Behalf Of *Andrei Dziahel
> *Sent:* 04 May 2009 12:47
> *To:* symfony-users@googlegroups.com
> *Subject:* [symfony-users] Re: Customize created_at field in Propel
>
>
>
> Hi.
>
> AFAIK, no - created_at and updated_at behavior is hardcoded, as far I can
> remember.
>
> 2009/5/1 HiDDeN 
>
>
> Maybe it is not possible?
>
>
> On 30 abr, 21:31, HiDDeN  wrote:
> > How can I customize the name of the created_at field?
> >
> > I mean, I'd like to have a field named, for example, created_date,
> > that has the same behavior as the default created_at.
> >
> > How could accomplish that?
> >
> > Thanks!
>
>
>
>
> --
> With the best regards, Andy.
>
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Customize created_at field in Propel

2009-05-04 Thread Andrei Dziahel
Hi.

AFAIK, no - created_at and updated_at behavior is hardcoded, as far I can
remember.

2009/5/1 HiDDeN 

>
> Maybe it is not possible?
>
> On 30 abr, 21:31, HiDDeN  wrote:
> > How can I customize the name of the created_at field?
> >
> > I mean, I'd like to have a field named, for example, created_date,
> > that has the same behavior as the default created_at.
> >
> > How could accomplish that?
> >
> > Thanks!
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Extra i18n file

2009-05-03 Thread Andrei Dziahel
Hi.

Looks like it isn't. The only guaranteed layout to work, AFAIK (as written
at
http://www.symfony-project.org/book/1_2/13-I18n-and-L10n#chapter_13_sub_using_dictionary_files),
is

> i18n
> |-messages.de.xml
> |-messages.nl.xml
> |-signin_form.de.xml
> \-signin_form.en.xml
>
and so on.

By the way, __() accepts third parameter - catalog name. But as for me,
message catalog that exists only in one culture is pretty senseless.

2009/5/3 HAUSa 

>
> If I create an extra XML file, that file seems not to work... If I have a
> translate tag which is translated in my new file, it just doesn't translate
> it.
>
> My question: isn't the whole i18n folder loaded by default, like the lib
> folder? Because it doesn't matter in the lib folder how many files I create
> there or how I name them.
>
> This is my tree:
> i18n
> - nl
> - - messages.xml
> - - extra.xml
> - - signin_form.xml
> - de
> - - messages.xml
> - - signin_form.xml
>
> The extra.xml file is the translation file that doesn't work. I like to
> have that file, because I let Symfony generate the messages.xml file
> automatically.
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Problems with doctrine:data-load

2009-04-22 Thread Andrei Dziahel
hi.

You can also try to enclose descriptions in apostrophes or quotes.

2009/4/22 Gary Rojas 

>
> I'm having a problem with my fixture data. This is a part of
> data/fixtures/status.yml
>
> pltStatus:
>  pltStatus_ina:
>id: ina
>name: Inactivo
>description: El registro ha sido desactivado por alguien que tiene las
> credenciales para hacerlo
>  pltStatus_pen:
>id: pen
>name: Pendiente:
>description: El registro está esperando la aprobación por alguien que
> tiene credenciales para hacerlo
>
> All requirements were created correctly (BD, models, sql file, insert sql,
> etc.). The problem is that the description field has non-ascii characters
> (in this case 'á') and these chars cause that the description text be
> cutting when one of these non-ascii chars is found.
>
> I think i'm making something wrong in the status.yml because the database
> definition is well defined. I have tested inserting the description text
> using a client and all text was inserted ok.
>
> I was searching information about how to solve this problem and i didn't
> found anything.
>
>
> Thanks so much
>
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Problem loading fixtures for NestedSets using Doctrine

2009-03-31 Thread Andrei Dziahel
Hello, Jon.

Thank you for response. But it looks like it is false alarm. At present time
while importing fixtures, Doctrine could count my fixture as NestedSet in 2
cases:
1) It looks similar to this:

> ProfileStat:
>   NestedSet:  yes
>
Notice indentation level - it is same as regular err... ProfileStats.
2) The *very first* element of *merged* fixture has children attribute. In
my case, that psc_profilestat_1 wasn't really first element - at very first
element I've skipped this attribute, because there were no nested stats :).

So, what does Doctrine_Data_Import do in my case? It can't see nor explicit
instructions to treat given fixture as NestedSet (*1*), nor implicit ones (*
2*) => whole fixture is treated as non-NestedSet => it is imported as
regular fixture. But when regular importer accidentally hits children
attribute, it naturally complains about missing setChildren method.

Of course, Doctrine manual tells us about explicit and implicit declaration
of fixture as NestedSet-enabled, but "if something can be understood in
wrong way, it will be understood this way". This thread definitely confirms
this statement. ;)

Links:
  #  
Doctrine_Data_Import::_hasNaturalNestedSetFormat()<http://trac.doctrine-project.org/browser/tags/1.0.8/lib/Doctrine/Data/Import.php#L253>


2009/3/31 Jonathan Wage 

> Hmm. This looks like another similar bug. Can you create a ticket and we'll
> troubleshoot the scenario to see what is going on.
>
> Thanks, Jon
>
>
> On Tue, Mar 31, 2009 at 6:20 AM, Andrei Dziahel wrote:
>
>> Hi, all.
>>
>> I have an model class that acts as NestedSet and I18n simultaneously. When
>> I'm trying to import following fixture.yml via symfony doctrine:data-load,
>> it throws  "Unknown method ProfileStat::setChildren" error message.
>> symfony 1.2.4, Doctrine 1.0.*8* (I've updated Doctrine to latest 1.0
>> after having trouble exactly as in this 
>> thread<http://groups.google.com/group/symfony-users/browse_thread/thread/c6e53ada0c5a811a>).
>>
>>
>> Can someone point me what I'm doing wrong?
>>
>> Thanks in advance.
>>
>> My *schema.yml:*
>>
>>> ProfileStat:
>>>   actAs:
>>> I18n:
>>>   fields: [name]
>>> NestedSet:
>>>   hasManyRoots: no
>>>   columns:
>>> id:
>>>   type: integer
>>>   primary:  yes
>>>   autoincrement:  yes
>>> code:
>>>   type: string(100)
>>>   notnull:  yes
>>> name:
>>>   type: string(255)
>>>   notnull:  yes
>>> order:
>>>   type: integer
>>>   unsigned: yes
>>>   notnull:  yes
>>>   default:  0
>>> is_choice_multiple:
>>>   type: boolean
>>>   notnull:  yes
>>> group_id: integer
>>>   relations:
>>> Values:
>>>   class:  ProfileStatValue
>>>   refClass: ProfileStatAvailableValue
>>>   local:  profile_stat_id
>>>   foreign:  profile_stat_value_id
>>>   foreignAlias: Stats
>>> Group:
>>>   class:  ProfileStatGroup
>>>   local:  group_id
>>>   foreign:  id
>>>   foreignAlias: Stats
>>>
>> fixtures.yml:
>>
>>>   psc_profilestat_1:
>>> code: profilestat1
>>> order:  1
>>> Group:  psg_profilestatgroup1
>>> children:
>>>   ps_profilestat2:
>>> code: profilestat2
>>> is_choice_multiple: no
>>> order:  1
>>> Translation:
>>>   en:
>>> name: Profilestat 2
>>> Translation:
>>>   en:
>>> name: profilestat 1
>>>
>>
>>
>>
>> With the best regards, Andy.
>>
>>
>>
>
>
> --
> Jonathan H. Wage
> Open Source Software Developer & Evangelist
> http://www.jwage.com
> http://www.doctrine-project.org
> http://www.symfony-project.org
>
> >
>
--
Regards,
Andrei Dziahel.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Problem loading fixtures for NestedSets using Doctrine

2009-03-31 Thread Andrei Dziahel
Hi, all.

I have an model class that acts as NestedSet and I18n simultaneously. When
I'm trying to import following fixture.yml via symfony doctrine:data-load,
it throws  "Unknown method ProfileStat::setChildren" error message. symfony
1.2.4, Doctrine 1.0.*8* (I've updated Doctrine to latest 1.0 after having
trouble exactly as in this
thread).


Can someone point me what I'm doing wrong?

Thanks in advance.

My *schema.yml:*

> ProfileStat:
>   actAs:
> I18n:
>   fields: [name]
> NestedSet:
>   hasManyRoots: no
>   columns:
> id:
>   type: integer
>   primary:  yes
>   autoincrement:  yes
> code:
>   type: string(100)
>   notnull:  yes
> name:
>   type: string(255)
>   notnull:  yes
> order:
>   type: integer
>   unsigned: yes
>   notnull:  yes
>   default:  0
> is_choice_multiple:
>   type: boolean
>   notnull:  yes
> group_id: integer
>   relations:
> Values:
>   class:  ProfileStatValue
>   refClass: ProfileStatAvailableValue
>   local:  profile_stat_id
>   foreign:  profile_stat_value_id
>   foreignAlias: Stats
> Group:
>   class:  ProfileStatGroup
>   local:  group_id
>   foreign:  id
>   foreignAlias: Stats
>
fixtures.yml:

>   psc_profilestat_1:
> code: profilestat1
> order:  1
> Group:  psg_profilestatgroup1
> children:
>   ps_profilestat2:
> code: profilestat2
> is_choice_multiple: no
> order:  1
> Translation:
>   en:
> name: Profilestat 2
> Translation:
>   en:
> name: profilestat 1
>



With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Download files - broken pdf

2009-03-25 Thread Andrei Dziahel
oops, disregard that - i've didn't read your source, sorry.

2009/3/25 Tomasz Ignatiuk 

> After line 592 which is $response->setContent(readfile($sciezka));
>
> There are:
> $response->sendContent();
> return sfView::NONE;
>
> I deleted $response->sendContent();
>
> so there are only:
> $response->setContent(readfile($sciezka));
> return sfView::NONE;
>
> in the endStill the same error. Headers already sent.
>
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Download files - broken pdf

2009-03-25 Thread Andrei Dziahel
hi, all.

isn't

> $response->setContentType('mimetype/you-want');
> $this->setLayout(false); //if you content-type has 'html' substring
> return $this->renderText(file_get_content($file));

 a right way to push a file to user?
E.g., I thought you shouldn't ever call $response->sendContent() inside
action. In most cases.

2009/3/25 Tomasz Ignatiuk 

> After line 592 which is $response->setContent(readfile($sciezka));
>
> There are:
> $response->sendContent();
> return sfView::NONE;
>
> I deleted $response->sendContent();
>
> so there are only:
> $response->setContent(readfile($sciezka));
> return sfView::NONE;
>
> in the endStill the same error. Headers already sent.
>
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: plugin:publish-assets vs. Linux/SVN

2009-03-17 Thread Andrei Dziahel
Hi.

Right as you said - I'm ignoring web/*Plugin and doing symfony
plugin:publish-assets after every update.

I also think this snippet should look like

> rm web/*Plugin
> symfony plugin:publish-assets
>
since you may delete some plugins during development.

2009/3/17 Yevgeniy A. Viktorov 

>
>
> Summary of solution discussed in this thread:
> 1. use some task(sf12: symfony plugin:publish-assets) to symlink/copy
> assets of your plugins to web dir.
> 2. add svn:ignore property to your "web/" folder (*Plugin)
>
> Thanks.
>
> Tom Haskins-Vaughan wrote:
> > Hi I've just come across this scenario, but I don't fully understand the
> > solution.
> >
> > Would it be possible to do an svn:externals link to the plugin's assets
> > in the repository?
> >
> > Tom
> >
> > Bernhard Schussek wrote:
> >
> >> Hi Thomas,
> >>
> >> On Thu, Feb 26, 2009 at 10:19 AM, Thomas Rabaix <
> thomas.rab...@gmail.com> wrote:
> >>
> >>> You can define a svn:ignore property to the web folder and just call
> the
> >>> task on your server to publish plugin's assets
> >>>
> >> Simple yet effective. I assumed that svn:ignore would not work because
> >> the asset folders are already under version control, but it works
> >> because the symlinks themselves are not.
> >>
> >> I just added *Plugin to svn:ignore and it works wery well.
> >>
> >>
> >> Thank you!
> >>
> >>
> >
> >
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: password - minimum 1 number - sfValidatorRegex

2009-03-10 Thread Andrei Dziahel
Hello.

Maybe you've forgot delimiters? Pattern passed to preg_match should be
overlapped with two same chars, usually '/'s. So right pattern will be */*
[0-9]{1,}*/*
BTW, this regex looks too complicated. I'd wrote something like \d+ - same
effect, and better optimized, probably.

2009/3/10 dziobacz 

>
> Password should be ok when user write minimum 1 number - so regular
> expression should be: '[0-9]{1,}'
> I checked it on this website: http://www.regextester.com/ (you must
> choose 'preg') and password: pass200 is correct but in symfony it
> isn't correct, I see non stiop: 'Minimum 1 number !!' when I write
> pass200 - here is my validator - what is wrong ?
>
>
> $this->validatorSchema->setPostValidator(new sfValidatorAnd(array(
>
> ..
>
>'password' => new sfValidatorRegex(array('pattern' => '[0-9]{1,}'),
>array('invalid' => 'Minimum 1 number !!')),
>
> )));
>
>
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: In the Base model classes, what does alreadyInSave accomplish?

2009-03-02 Thread Andrei Dziahel
Hi.

I don't remember exactly since I've left Propel some time ago, but AFAIR
there's explanation in comments. Just enable them in your propel.ini and
rebuild model.

On Mon, Mar 2, 2009 at 07:42, Lawrence Krubner wrote:

>
> I'm examining some auto-generated code in the Base class of one of my model
> classes. I'm curious about the line with the $this->alreadyInSave. It is
> first set to true, and then later it is set to false. As near as I can see,
> it is always set to true, and then false. What is the point of this? If PHP
> was asynchronous, this would make more sense, but PHP is procedural. Does
> this boolean flag exist for dealing with Ajax requests?
>
>
>protected function doSave($con)
>{
>$affectedRows = 0;
>if (!$this->alreadyInSave) {
>$this->alreadyInSave = true;
>
>
>if ($this->isModified()) {
>if ($this->isNew()) {
>$pk = NewNewsPeer::doInsert($this,
> $con);
>$affectedRows +=  1;
>$this->setId($pk);
>$this->setNew(false);
>} else {
>$affectedRows +=
> NewNewsPeer::doUpdate($this, $con);
>}
>$this->resetModified();
>}
>
>$this->alreadyInSave = false;
>}
>return $affectedRows;
>}
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Disable JS events until page fully loads

2009-02-27 Thread Andrei Dziahel
You should bind (no onclicks&onmouseovers!) event handlers inside handler of
onDOMReady (or documentReady) event.

But this thread is offtopic.

On Fri, Feb 27, 2009 at 15:17, Sumedh  wrote:

>
> Hi Friends,
>
> I've put all my JS includes at the bottom of pages...that improves
> visible performance of the page...
>
> But if user clicks somewhere on the page before it fully loads, it
> fires JS errors as the JS file is not found yet...
>
> How can I fix this generically?
>
> I want to disable all JS events like onclicks and onmouseovers until
> page is loaded...i will enable them in window.onload()...
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Propel - Two columns of a table not_equal

2009-02-26 Thread Andrei Dziahel
Hi.

Try
$c->add(TablePeer::Column1, TablePeer::Column2 . ' ' . Criteria::NOT_EQUAL .
' ' . TablePeer::Column1, Criteria::CUSTOM);

On Thu, Feb 26, 2009 at 22:10, Tomasz Ignatiuk wrote:

> It is not working. Neither NOT_LIKE nor NOT_EQUAL
>
> 2009/2/26 Jan De Coster 
>
>
>> $c->add(TablePeer::Column1, TablePeer::Column2, Criteria::NOT_LIKE);
>>
>> Or somthing like that ...
>>
>> -Oorspronkelijk bericht-
>> Van: symfony-users@googlegroups.com [mailto:
>> symfony-us...@googlegroups.com]
>> Namens Tomasz Ignatiuk
>> Verzonden: donderdag 26 februari 2009 21:00
>> Aan: symfony users
>> Onderwerp: [symfony-users] Propel - Two columns of a table not_equal
>>
>>
>> Any ideas how to do this?
>>
>> A want a query in propel that gets objects from table1  where
>> table1.column1 <> table1.column2
>>
>>
>>
>>
>>
>
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-26 Thread Andrei Dziahel
Hi,

Look into this ticket - http://trac.symfony-project.org/ticket/4952

On Thu, Feb 26, 2009 at 16:18, we-create  wrote:

>
> when i try to call this function with:
>
> 'inhoudnl' => new sfWidgetFormTextareaTinyMCE(
>  array(
>'width'=>550,
>'height'=>350,
>'config'=>'theme_advanced_disable:
> "anchor,image,cleanup,help"',
>'theme'   =>  sfConfig::get('app_tinymce_theme','advanced'),
>  )
>
> it shows this in the html:
>
>  
>Inhoudnl
>
> id="pagina_inhoudnl">

html hier

type="text/javascript"> > tinyMCE.init({ >mode: "textareas", >theme: "advanced", >editor_selector: "tiny_mce", >width: "550px", >height:"350px", >theme_advanced_toolbar_location: "top", >theme_advanced_toolbar_align: "left", >theme_advanced_statusbar_location: "bottom", >theme_advanced_resizing: true >, > theme_advanced_disable: "anchor,image,cleanup,help" > }); > > > > > but i don't get the content ... is this a known issue and does anyone > knows a fix for this ? > > > Kind regards, > > Jan De Coster > > > > -- With the best regards, Andy. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---

[symfony-users] Re: postValidator question

2009-02-25 Thread Andrei Dziahel
Hi.

Yes.
http://www.symfony-project.org/book/forms/1_2/en/02-Form-Validation#chapter_02_global_validators

On Wed, Feb 25, 2009 at 14:30, samokhinva...@gmail.com <
samokhinva...@gmail.com> wrote:

>
> Hi guys,
>
> I have the following question. I have a form for password changing
> with three fields - old_password, password and confirm_password. First
> I need to check if old_password matches with my current password. What
> is the easiest way to implement this? I guess, I should use
> postValidators, but how?
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfWidgetFormTextareaTinyMCE not working in admin

2009-01-13 Thread Andrei Dziahel

Look at here.

http://trac.symfony-project.org/ticket/4918

On 30 дек 2008, 14:53, Tartaruga  wrote:
> I have generated an admin interface to a Model that contains i18n.
> Then in the form class I embedded i18n. If I use normal textarea
> everything works, if I switch tosfWidgetFormTextareaTinyMCEthe
> textarea is always starting blank even when there is a value to show.
> Also when I insert a new object the value on textarea is taken blank.
>
> This is schema.yml
>
> Game:
>   actAs:
>     Timestampable: ~
>     Sluggable:
>       fields:  [name]
>     I18n:
>       fields: [body, box_content]
>   columns:
>     category_id:  { type: integer, notnull: true }
>     name:         { type: string, length: 255, unique: true }
>     body:         clob
>     box_content:  clob
>     active:       { type: boolean, notnull: true, default: false }
>   relations:
>     Category:
>       local:        category_id
>       foreign:      id
>       foreignAlias: Games
>
> Here is GameForm?.class.php
>
> class GameForm extends BaseGameForm
> {
>   public function configure()
>   {
>     unset($this['created_at'], $this['updated_at']);
>
>     $this->embedI18n(sfConfig::get('app_languages_list'));
>
>   }
>
> }
>
> Here is GameTranslationForm?.class.php
>
> class GameTranslationForm extends BaseGameTranslationForm
> {
>   public function configure()
>   {
>
>     $this->widgetSchema['body'] = newsfWidgetFormTextareaTinyMCE(array
> (
>       'width' => 650,
>       'height' => 450,
>       ),
>       array('class' => 'tinymce',)
>     );
>
>     $this->widgetSchema['box_content'] = newsfWidgetFormTextareaTinyMCE(array(
>       'width' => 450,
>       'height' => 450,
>       ),
>       array('class' => 'tinymce',)
>     );
>
>   }
>
>
>
> }
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfWidgetFormTextareaTinyMCE not working in admin

2009-01-13 Thread Andrei Dziahel

Hi.

I'm experiencing same thing. Module is generated with
DoctrineAdminGenerator too.

As far as I can see, TinyMCE just doesn't retrieve value from textarea
- even if it is filled, TinyMCE widget is empty.

Well, that's all by now.

On 30 дек 2008, 14:53, Tartaruga  wrote:
> I have generated an admin interface to a Model that contains i18n.
> Then in the form class I embedded i18n. If I use normal textarea
> everything works, if I switch tosfWidgetFormTextareaTinyMCEthe
> textarea is always starting blank even when there is a value to show.
> Also when I insert a new object the value on textarea is taken blank.
>
> This is schema.yml
>
> Game:
>   actAs:
>     Timestampable: ~
>     Sluggable:
>       fields:  [name]
>     I18n:
>       fields: [body, box_content]
>   columns:
>     category_id:  { type: integer, notnull: true }
>     name:         { type: string, length: 255, unique: true }
>     body:         clob
>     box_content:  clob
>     active:       { type: boolean, notnull: true, default: false }
>   relations:
>     Category:
>       local:        category_id
>       foreign:      id
>       foreignAlias: Games
>
> Here is GameForm?.class.php
>
> class GameForm extends BaseGameForm
> {
>   public function configure()
>   {
>     unset($this['created_at'], $this['updated_at']);
>
>     $this->embedI18n(sfConfig::get('app_languages_list'));
>
>   }
>
> }
>
> Here is GameTranslationForm?.class.php
>
> class GameTranslationForm extends BaseGameTranslationForm
> {
>   public function configure()
>   {
>
>     $this->widgetSchema['body'] = newsfWidgetFormTextareaTinyMCE(array
> (
>       'width' => 650,
>       'height' => 450,
>       ),
>       array('class' => 'tinymce',)
>     );
>
>     $this->widgetSchema['box_content'] = newsfWidgetFormTextareaTinyMCE(array(
>       'width' => 450,
>       'height' => 450,
>       ),
>       array('class' => 'tinymce',)
>     );
>
>   }
>
>
>
> }
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: autocompletion and syntax highlighting for symfony?

2008-12-08 Thread Andrei Dziahel

Hi, Ward.

I am using Zend Studio 6, looking forward for NetBeans 7.0 (with
"symfony support"). There's a bit of pages in symfony's wiki [http://
trac.symfony-project.org/#IDE] that describe symfony integration into
various shells and IDEs.

On 8 дек, 10:17, Ward Loockx <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm new to symfony and wanted to know what's the best IDE for symfony
> development? Is there any that has support for the symfony syntax?
>
> Thanks!
> Ward
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---