[symfony-users] Re: pagination template without repeat - like in Zend framework !!

2010-07-15 Thread alexmm
ok - so _pagination.php partial in /apps/frontend/templates and then
use it in module template:
?php include_partial('global/pagination', array('pager' = $pager)); ?


On 15 Lip, 07:35, Bernhard Schussek bschus...@gmail.com wrote:
 What about creating a _pagination.php partial with the shared code?

 Bernhard

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@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: pagination template without repeat - like in Zend framework !!

2010-07-15 Thread Bernhard Schussek
Yes, you can do it like that.

Bernhard

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@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: i18n: show the all translatable strings ??

2010-07-15 Thread mikael.randy
All forms stuff aren't find by i18n:find task.

There is an another way to show translable string untranslated :
in the factory.yml of an application, activate the debug param of the
i18n entry, for the dev environnement :

dev:
  i18n:
param:
  debug:false

As long as a string is not translated, the __() helper will surround
all string.

But this method dont work for form as the first one.

On 9 juil, 12:23, Javier Garcia tirengar...@gmail.com wrote:
 Thanks, but in that list I'm missing the forms stuff: labels, validation
 errors...

 Is that normal?

 On 07/07/2010 11:07 PM, Alexandru-Emil Lupu wrote:





  ./symfony i18n:find frontend

  On Wed, Jul 7, 2010 at 9:25 PM, Javier Garcia tirengar...@gmail.com
  mailto:tirengar...@gmail.com wrote:

      Hi,

      is there any way to show all the strings in my app that are
      inside the helper __(' ') ?

      --

      Javi

      Ubuntu 8.04 - Symfony 1.3

      --
      If you want to report a vulnerability issue on symfony, please
      send it to security at symfony-project.com
      http://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 mailto:symfony-users@googlegroups.com
      To unsubscribe from this group, send email to
      symfony-users+unsubscr...@googlegroups.com
      mailto:symfony-users%2bunsubscr...@googlegroups.com
      For more options, visit this group at
     http://groups.google.com/group/symfony-users?hl=en

  --
  Have a nice day!

  Alecs
  Certified ScrumMaster

  P.S. If you are on a list, please don't contact me privatelly, unless
  i have allowed to. Further messages will be ignored.

  There are no cannibals alive! I have ate the last one yesterday ...
  I am on web:http://www.alecslupu.ro/
  I am on twitter:http://twitter.com/alecslupu
  I am on linkedIn:http://www.linkedin.com/in/alecslupu
  Tel: (+4)0722 621 280
  --
  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

 --
 Javi

 Ubuntu 8.04 - Symfony 1.3

-- 
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] Re: symfony and Eclipse: I can not go to the function or class using F3.

2010-07-15 Thread Stéphane
What you can do when using eclipse is doing such:

In the declaration of the  $this-usuario property, add this comment bloc:
/**
 *
 * @var sf**Route
 */
Then Eclipse will know the type of this var.

Cheers,


Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Thu, Jul 15, 2010 at 7:39 AM, Bernhard Schussek bschus...@gmail.comwrote:

 Hi Javier,

 That's because the return type of getRoute() is defined as sfRoute[1],
 which doesn't have a getObject() method. Eclipse can't know that this
 method returns a sfObjectRoute in this specific case.

 Bernhard

 [1]
 http://trac.symfony-project.org/browser/branches/1.4/lib/action/sfAction.class.php#L505

 --
 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.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en


-- 
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


[symfony-users] Re: Frameworks CSS

2010-07-15 Thread Greg
Blueprint

there is a plugin
http://www.symfony-project.org/plugins/sfBlueprintPlugin

On 12 juil, 15:22, Nei Rauni Santos nra...@gmail.com wrote:
 Hi,

 I'd like to know if you use any kind of frameworks CSS in your sf projects.

 I'm working in a group with 4 programmers and 2 designers and I'm
 looking for a css framework to improve our productivity and quality of
 our designs.

 I think that the Jquery UI is the best option because we alrelady use
 a lof of jquery widgets.

 Thank you,

 --
 Nei Rauni Santos

 http://www.linkedin.com/in/neiraunisantoshttp://www.facebook.com/nei.santoshttp://www.twitter.com/nraunihttp://blog.inuar.com

 Curitiba - Paraná
 +55 41 85020985

-- 
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


[symfony-users] Re: Customize admin generator to parse generator.yml with custom properties

2010-07-15 Thread Thor
nobody? :(

On 12 Lug, 12:43, Thor thorste...@gmail.com wrote:
 well,actually i need to heavily customizeadmingenerators to create
 various functionalities, so i haven't got a single example, i provide
 some of them that i could use:

 batch_position: top  # (top,bottom,both)
 toggable_fields: [ gallery, field1,field2 ]  # fields who will have a
 jquery effect to toggle containers
 floating_components: [ component1,component2, component3 ] # ok ,maybe
 this is a bit too much, but is only for the sake of the example

 The goal i'd want to reach is to provide other developers in the
 company,admingenerators already configured / built with some custom
 needs

 I looked in the built-in themes, and for example they look for

 $this-configuration-getValue('list.batch_actions')
 or again
 $this-configuration-getValue('list.display')
 or again
 $this-getI18NString ('list.title')

 i'd like to find a way to make
 $this-configuration-getValue('list.batch_position')
 parsable with a custom function...

 On 12 Lug, 12:25, Daniel Lohse annismcken...@googlemail.com wrote:



  This sounds much too abtract (custom_option1) — what use-case do you have?

  Cheers, Daniel

  Sent from my iPad

  On Jul 12, 2010, at 12:18 PM, Thor thorste...@gmail.com wrote:

   Hi all,
   i cannot understand how to customize theadmingenerator:
   i am using propel, and i see that from thegenerator.yml the first
   line is the class used by thegenerator, therefore in my case
   sfPropelGenerator.

   I think that extending that class with a custom one is the first step,
   what i'd like to know, and i didn't find any information about it, is
   how to parse the yml with options i want, for example by adding some
   options

   list:
          display: [ title, _content, status, created_at ]
          batch_actions: { }
          custom_option1: true
          custom_option2: { attrib1: xyz, attrib2: aaa }
          etc..

   could someone please address me toward the correct direction?
   what class do i have to look for?

   --
   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

-- 
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] Re: Customize admin generator to parse generator.yml with custom properties

2010-07-15 Thread Daniel Lohse
Take a look at how I did this in my admin generator plugin: 
http://www.symfony-project.org/plugins/ahAdminGeneratorThemesPlugin

Just search for is_sortable and sort_method in the source code of the 
plugin and you'll know how I did that. (:


Cheers, Daniel

PS: If there's anything else about this, post back here. (:

On 15.07.2010, at 12:48, Thor wrote:

 nobody? :(
 
 On 12 Lug, 12:43, Thor thorste...@gmail.com wrote:
 well,actually i need to heavily customizeadmingenerators to create
 various functionalities, so i haven't got a single example, i provide
 some of them that i could use:
 
 batch_position: top  # (top,bottom,both)
 toggable_fields: [ gallery, field1,field2 ]  # fields who will have a
 jquery effect to toggle containers
 floating_components: [ component1,component2, component3 ] # ok ,maybe
 this is a bit too much, but is only for the sake of the example
 
 The goal i'd want to reach is to provide other developers in the
 company,admingenerators already configured / built with some custom
 needs
 
 I looked in the built-in themes, and for example they look for
 
 $this-configuration-getValue('list.batch_actions')
 or again
 $this-configuration-getValue('list.display')
 or again
 $this-getI18NString ('list.title')
 
 i'd like to find a way to make
 $this-configuration-getValue('list.batch_position')
 parsable with a custom function...
 
 On 12 Lug, 12:25, Daniel Lohse annismcken...@googlemail.com wrote:
 
 
 
 This sounds much too abtract (custom_option1) — what use-case do you have?
 
 Cheers, Daniel
 
 Sent from my iPad
 
 On Jul 12, 2010, at 12:18 PM, Thor thorste...@gmail.com wrote:
 
 Hi all,
 i cannot understand how to customize theadmingenerator:
 i am using propel, and i see that from thegenerator.yml the first
 line is the class used by thegenerator, therefore in my case
 sfPropelGenerator.
 
 I think that extending that class with a custom one is the first step,
 what i'd like to know, and i didn't find any information about it, is
 how to parse the yml with options i want, for example by adding some
 options
 
 list:
display: [ title, _content, status, created_at ]
batch_actions: { }
custom_option1: true
custom_option2: { attrib1: xyz, attrib2: aaa }
etc..
 
 could someone please address me toward the correct direction?
 what class do i have to look for?
 
 --
 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
 
 -- 
 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

-- 
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


[symfony-users] Re: render widget as label

2010-07-15 Thread Prasad Gupte
What I do is set the readonly parameter via the widget constructor

$this-setWidgets(array(
'price'   = new
sfWidgetFormInputText(array(), array('readonly' = 'readonly')),
 ));

and then use jQuery to convert the input element to a div or span. I
can share the code later if you need it.

On Jun 7, 12:31 pm, Tom Ptacnik to...@tomor.cz wrote:
 Look 
 herehttp://groups.google.com/group/symfony-users/browse_thread/thread/80f...

 On 4 čvn, 22:00, fRAnKEnSTEin shirkav...@gmail.com wrote:

  Hi there,

  Is there any way of rendering a form widget as a label? for example if
  i have a form called fooForm defined as:

  ...
  ...
  public function configure()
  {
       ...
       ...
       $this-setWidgets(array(
              'price'               = new sfWidgetFormInputText(),
       ));
       ...
       ...

  }

  then in my template:

  div ?php echo $form['price']-render() ? /div

  Instead of rendeing the widget as an input text element, i need to
  render it like a label element. I have searched is there is any
  sfWidgetFormLabel or something but there is not.

  Any idea?

  Cheers



-- 
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


[symfony-users] Re: How to use template.filter_parameters event to change CSRF error message?

2010-07-15 Thread Johannes
Hm, this looks like quite a bit of overhead.

Have you tried sfValidatorBase::setDefaultMessage()?

Kind regards,
Johannes


On Jul 15, 1:56 am, Sid Bachtiar sid.bacht...@gmail.com wrote:
 http://bluehorn.co.nz/2010/07/15/how-to-change-csrf-attack-message-in...



 On Thu, Jul 15, 2010 at 11:25 AM, Sid Bachtiar sid.bacht...@gmail.com wrote:
  Never mind, I found the answer in
 http://www.symfony-project.org/more-with-symfony/1_4/en/14-Playing-wi...

  On Thu, Jul 15, 2010 at 10:40 AM, Sid Bachtiar sid.bacht...@gmail.com 
  wrote:
  Hi,

  I would like to change the CSRF error message and someone (Kris W)
  pointed out that I should use template.filter_parameters event.

  Could Kris or someone please give me more clues?

  Thanks,

  Sid
  --
  Blue Horn Ltd - System Development
 http://bluehorn.co.nz

  --
  Blue Horn Ltd - System Development
 http://bluehorn.co.nz

 --
 Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz

-- 
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


[symfony-users] smarty with symfony 1.4

2010-07-15 Thread charanjeet
I am confused regarding which Smarty Plugin i should use for my
project.
sfSmarty3Plugin is not tested for production server.
sfSmartyPlugin and sfSmartyViewPlugin are not for symfony 1.4.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are 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] ahDoctrineEasyEmbeddedRelationsPlugin many to many

2010-07-15 Thread François SEDE
Hi,

I'm using the ahDoctrineEasyEmbeddedRelationsPlugin with a many to
many relation and I have an error :


500 | Internal Server Error | Doctrine_Record_Exception
Couldn't call Doctrine_Core::set(), second argument should be an
instance of Doctrine_Collection when setting many-to-many references.

Yaml :

Event:
  actAs: { Timestampable: ~ }
  columns:
 ...
  relations:
...
Participant:
  class: Profile
  local: event_id
  foreign: profile_id
  refClass: EventProfile

Profile:
  actAs: { Timestampable: ~ }
  columns:
  ...
  relations:
 ...
Event:
  class: Event
  local: profile_id
  foreign: event_id
  refClass: EventProfile

EventProfile:
  columns:
profile_id:
  type: integer
event_id:
  type: integer
  relations:
Profiles:
  class: Profile
  local: profile_id
  foreign: id
  onDelete: CASCADE
Event:
  class: Event
  local: event_id
  foreign: id
  onDelete: CASCADE

Here is my code :

class EventForm extends BaseEventForm {
public function configure() {

...

$this-embedRelations(array(
'Participant' = array(
'considerNewFormEmptyFields'= array(),
'noNewForm' = false,
'newFormLabel'  = 'New
Adresse :',
'newFormClassArgs'  =
array(array('sf_user' = $this-getOption('sf_user'))),
'displayEmptyRelations' = false,
'formClassArgs' =
array(array('ah_add_delete_checkbox' = false)),
'newFormAfterExistingRelations' = true,
'formFormatter' = null,
'multipleNewForms'  = true,
'newFormsInitialCount'  = 2,
'newFormsContainerForm' = null,
'newRelationButtonLabel'= '+',
'newRelationAddByCloning'   = true,
'newRelationUseJSFramework' = 'jQuery',
)
 )
 );

Can you help me please?

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


[symfony-users] Excluding from Filter and Form builder

2010-07-15 Thread Sarel
Does anybody know whether it's possible in the schema.yml file to
exclude certain tables from the Filter and Form building? I.e. let's
say I have 10 tables, but only say 4 of them should have filters,
forms etc built... the rest should ONLY have the ORM's for data access?

-- 
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] Excluding from Filter and Form builder

2010-07-15 Thread Gábor Fási
I'm using this:

_propel_behaviors:
  symfony:
form:   false
filter: false


On Thu, Jul 15, 2010 at 14:45, Sarel sare...@gmail.com wrote:
 Does anybody know whether it's possible in the schema.yml file to
 exclude certain tables from the Filter and Form building? I.e. let's
 say I have 10 tables, but only say 4 of them should have filters,
 forms etc built... the rest should ONLY have the ORM's for data access?

 --
 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


-- 
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] Excluding from Filter and Form builder

2010-07-15 Thread Stefan Paschke
if you are using Doctrine, you can turn filters off like this: 

SomeModel:
  options:
symfony:
  form: false
  filter: false

it's described on day 10 of the Jobeet tutorial

regards


Le Jul 15, 2010 à 4:16 PM, Gábor Fási a écrit :

 I'm using this:
 
_propel_behaviors:
  symfony:
form:   false
filter: false
 
 
 On Thu, Jul 15, 2010 at 14:45, Sarel sare...@gmail.com wrote:
 Does anybody know whether it's possible in the schema.yml file to
 exclude certain tables from the Filter and Form building? I.e. let's
 say I have 10 tables, but only say 4 of them should have filters,
 forms etc built... the rest should ONLY have the ORM's for data access?
 
 --
 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
 
 
 -- 
 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

-- 
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


[symfony-users] Symfony2: Best way to test a 404 response?

2010-07-15 Thread Brandon Turner
Does any one have any suggestions on how to test for a 404 response 
(generated due to a NotFoundHttpException) in Symfony2 using PHPUnit?  
When I try a test like:


$this-assertEquals(404, $client-getResponse()-getStatusCode())

it always generates an error because Symfony logs an error via the 
error_log function when the NotFoundHttpException is thrown (via 
ExceptionListener).  In CLI mode, this error message goes to stderr.  
PHPUnit catches output to stderr and throws a RuntimeException, thus 
causing the test to error.


It looks like you can't use the error_log function when running tests 
using PHPUnit.  So is this a Symfony2 bug, a PHPUnit bug, a 
misconfiguration on my end, or a misunderstanding on my end?


I'd appreciate any pointers you can provide!
Brandon

--
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


[symfony-users] Re: Doctrine Commands not loaded

2010-07-15 Thread gordonslondon
problem found, have to update some files path after some namespace
changes in PR3

-- 
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


[symfony-users] Call to a member function setLabel() on a non-object

2010-07-15 Thread Ricardo Jose Guzman Milanes
Hello

I receive this error every time that I try to add a sfGuarduser the
complete error is:

Fatal error: Call to a member function setLabel() on a non-object in /
opt/lampp/htdocs/unfuddle/hcn/plugins/sfDoctrineGuardPlugin/lib/form/
doctrine/base/BasesfGuardUserAdminForm.class.php on line 27

After some search in Google I found this:
http://trac.symfony-project.org/ticket/7749

But after removing the line the problem persist.

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


[symfony-users] [symfony 2] conflict: annotation validation on a Doctrine Entity using annotation mapping

2010-07-15 Thread gordonslondon
Hi,

has someone tried to set on a Doctrine Entity class both:
- annotation validation
- annotation to map fields

exemple:
/**
 * @Entity(repositoryClass=Application\MyBundle\Entities
\UserRepository)
 */
class User
{
  /**
   * @Column(type=integer)
   * @Validation({ @NotBlank, @MinLength(2) })
   */
   protected $age;
}

then error:
Class 'Symfony\Components\Validator\Constraints\Entity' not found
in 'src/vendor/doctrine/lib/vendor/doctrine-common/lib/Doctrine/Common/
Annotations/Parser.php' on line 299

is there a solution to use both ?

thanks in advance.

-- 
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] ahDoctrineEasyEmbeddedRelationsPlugin many to many

2010-07-15 Thread Daniel Lohse
Sorry for not answering in a more timely manner — I'm the plugin developer. :) 
But as it's a bit late I'll answer your question tomorrow; I hope that alright. 
;-)


Cheers, Daniel

Sent from my iPad

On Jul 15, 2010, at 12:29 PM, François SEDE francois.s...@gmail.com wrote:

 Hi,
 
 I'm using the ahDoctrineEasyEmbeddedRelationsPlugin with a many to
 many relation and I have an error :
 
 
 500 | Internal Server Error | Doctrine_Record_Exception
 Couldn't call Doctrine_Core::set(), second argument should be an
 instance of Doctrine_Collection when setting many-to-many references.
 
 Yaml :
 
 Event:
  actAs: { Timestampable: ~ }
  columns:
 ...
  relations:
...
Participant:
  class: Profile
  local: event_id
  foreign: profile_id
  refClass: EventProfile
 
 Profile:
  actAs: { Timestampable: ~ }
  columns:
  ...
  relations:
 ...
Event:
  class: Event
  local: profile_id
  foreign: event_id
  refClass: EventProfile
 
 EventProfile:
  columns:
profile_id:
  type: integer
event_id:
  type: integer
  relations:
Profiles:
  class: Profile
  local: profile_id
  foreign: id
  onDelete: CASCADE
Event:
  class: Event
  local: event_id
  foreign: id
  onDelete: CASCADE
 
 Here is my code :
 
 class EventForm extends BaseEventForm {
public function configure() {
 
...
 
$this-embedRelations(array(
'Participant' = array(
'considerNewFormEmptyFields'= array(),
'noNewForm' = false,
'newFormLabel'  = 'New
 Adresse :',
'newFormClassArgs'  =
 array(array('sf_user' = $this-getOption('sf_user'))),
'displayEmptyRelations' = false,
'formClassArgs' =
 array(array('ah_add_delete_checkbox' = false)),
'newFormAfterExistingRelations' = true,
'formFormatter' = null,
'multipleNewForms'  = true,
'newFormsInitialCount'  = 2,
'newFormsContainerForm' = null,
'newRelationButtonLabel'= '+',
'newRelationAddByCloning'   = true,
'newRelationUseJSFramework' = 'jQuery',
)
 )
 );
 
 Can you help me please?
 
 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

-- 
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


[symfony-users] Hi all, I'm begginner in symfony How to fix this mistakes. (The posix_isatty() is available: FAILED, A PHP accelerator is installed: FAILED)

2010-07-15 Thread Borkhuu
My OS: win Vista, Help me please.

php.ini used by PHP: C:\wamp\bin\apache\Apache2.2.11\bin\php.ini


** Mandatory requirements **

  OKPHP version is at least 5.2.4 (5.3.0)

** Optional checks **

  OKPDO is installed
  OKPDO has some drivers installed: mysql, sqlite
  OKPHP-XML module is installed
  OKXSL module is installed
  OKThe token_get_all() function is available
  OKThe mb_strlen() function is available
  OKThe iconv() function is available
  OKThe utf8_decode() is available
[[WARNING]] The posix_isatty() is available: FAILED
*** Install and enable the php_posix extension (used to
colorized the CLI output) ***
[[WARNING]] A PHP accelerator is installed: FAILED
*** Install a PHP accelerator like APC (highly
recommended) ***
  OKphp.ini has short_open_tag set to off
  OKphp.ini has magic_quotes_gpc set to off
  OKphp.ini has register_globals set to off
  OKphp.ini has session.auto_start set to off
  OKPHP version is not 5.2.9

-- 
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


[symfony-users] Unit tests fail with 'dubious' status

2010-07-15 Thread Lene Preuss
Hi list, I'm a newb to symfony, so forgive me if I'm asking a dumb
question.

I jumped into symfony writing unit tests. My tests run fine when I run
them as single test, e.g.

 php symfony test:unit Store

but they all fail with a 'dubious' status when I run them all, e.g.

 php symfony test:unit
StoreTableTest...dubious
Test returned status 255
Failed tests: 0
StoreTestdubious
Test returned status 255
Failed tests: 0
Failed Test Stat  Total   Fail  Errors  List of
Failed
--
StoreTableTest   255  1  1  0  0
StoreTest255  1  1  0  0
Failed 2/2 test scripts, 0.00% okay. 2/0 subtests failed, 0.00% okay.

I read that the tests should be able to run standalone, which they
don't. E.g:

 php test/unit/StoreTest.php
PHP Fatal error:  Uncaught exception 'Doctrine_Connection_Exception'
with message 'There is no open connection' in /var/home/lene/workspace/
my.agfaphoto/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/
vendor/doctrine/Doctrine/Manager.php:662
Stack trace:
#0 /var/home/lene/workspace/my.agfaphoto/lib/vendor/symfony/lib/
plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Manager.php(264): Doctrine_Manager-getCurrentConnection()
#1 /var/home/lene/workspace/my.agfaphoto/test/unit/
Testcase.class.php(59): Doctrine_Manager::connection()
#2 /var/home/lene/workspace/my.agfaphoto/test/unit/
Testcase.class.php(20): Testcase::initData()
#3 /var/home/lene/workspace/my.agfaphoto/test/unit/StoreTest.php(13):
Testcase-__construct()
#4 {main}
  thrown in /var/home/lene/workspace/my.agfaphoto/lib/vendor/symfony/
lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Manager.php
on line 662

I start each test by including dirname(__FILE__).'/../bootstrap/
unit.php'.

What can I do to make testing all units at once work?

Thanks,

Lene

-- 
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] [symfony 2] conflict: annotation validation on a Doctrine Entity using annotation mapping

2010-07-15 Thread Tim Nagel
I've come across a similar problem, haven't had much time to try work it out
on Symfony's end, however I have proposed a change to Doctrine\Common that
would fix this - see my comment:
http://www.doctrine-project.org/jira/browse/DCOM-11

http://www.doctrine-project.org/jira/browse/DCOM-11(When the fix is
applied, everything works as expected)


Tim

On Fri, Jul 16, 2010 at 07:27, gordonslondon jules.boussek...@gmail.comwrote:

 Hi,

 has someone tried to set on a Doctrine Entity class both:
 - annotation validation
 - annotation to map fields

 exemple:
 /**
  * @Entity(repositoryClass=Application\MyBundle\Entities
 \UserRepository)
  */
 class User
 {
  /**
   * @Column(type=integer)
   * @Validation({ @NotBlank, @MinLength(2) })
   */
   protected $age;
 }

 then error:
 Class 'Symfony\Components\Validator\Constraints\Entity' not found
 in 'src/vendor/doctrine/lib/vendor/doctrine-common/lib/Doctrine/Common/
 Annotations/Parser.php' on line 299

 is there a solution to use both ?

 thanks in advance.

 --
 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.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en


-- 
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] [symfony 2] conflict: annotation validation on a Doctrine Entity using annotation mapping

2010-07-15 Thread Jonathan Wage
Hi,

It is a known issue and we're discussing a solution.

Thanks for reporting it and the information.

- Jon

On Thu, Jul 15, 2010 at 5:37 PM, Tim Nagel t...@nagel.com.au wrote:
 I've come across a similar problem, haven't had much time to try work it out
 on Symfony's end, however I have proposed a change to Doctrine\Common that
 would fix this - see my
 comment: http://www.doctrine-project.org/jira/browse/DCOM-11
 (When the fix is applied, everything works as expected)

 Tim

 On Fri, Jul 16, 2010 at 07:27, gordonslondon jules.boussek...@gmail.com
 wrote:

 Hi,

 has someone tried to set on a Doctrine Entity class both:
 - annotation validation
 - annotation to map fields

 exemple:
 /**
  * @Entity(repositoryClass=Application\MyBundle\Entities
 \UserRepository)
  */
 class User
 {
  /**
   * @Column(type=integer)
   * @Validation({ @NotBlank, @MinLength(2) })
   */
   protected $age;
 }

 then error:
 Class 'Symfony\Components\Validator\Constraints\Entity' not found
 in 'src/vendor/doctrine/lib/vendor/doctrine-common/lib/Doctrine/Common/
 Annotations/Parser.php' on line 299

 is there a solution to use both ?

 thanks in advance.

 --
 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

 --
 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




-- 
Jonathan H. Wage
http://www.twitter.com/jwage

-- 
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


[symfony-users] how can I get url without parameters in view ?

2010-07-15 Thread alexmm
how can I get url without parameters in view ?
For example when I have: http://myapp.example.com/article/read/21; -
I would like to get: article/read

-- 
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


[symfony-users] Re: how can I get url without parameters in view ?

2010-07-15 Thread alexmm
I would like to have universal template for pagintion - so I need
something like that:
?php echo url_for(.CURRENT URL'?page=1') ?


On 16 Lip, 07:08, alexmm misiekaleksan...@gmail.com wrote:
 how can I get url without parameters in view ?
 For example when I have: http://myapp.example.com/article/read/21; -
 I would like to get: article/read

-- 
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