[symfony-users] Re: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread spike3111
Ok Tim, your solution works, the documentation said to use getService.
I looked again the documentation on the site of symfony, and it just
changed in my opinion, and now the code is just $em =
$this['doctrine.orm.entity_manager'];

So what to choose? If the documentation has been updated, so I will
use this.

On 19 sep, 03:49, Dennis Jacobfeuerborn 
wrote:
> Hm, so I found that I apparently can store the yml files in Resources/
> config/doctrine/metadata/orm/*.yml.
> However when I do so doctrine:schema:create no longer dumps the
> User.php file but still says "No Metadata
> Classes to process". It doesn't even matter what the yaml file
> contains (e.g. some random garbage).
>
> On Sep 19, 3:29 am, Dennis Jacobfeuerborn 
> wrote:
>
> > That still leaves the question why a) doctrine:schema:create outputs
> > the contents of Entity/User.php on the screen and b) says "No Metadata
> > Classes to process." after doing so.
> > In Symfony1 I used yaml to define the schema but I don't know where to
> > put the yaml file for the schema definition in Symfony2 or how to tell
> > Symfony2 to use the yaml schema and generate the classes from that.
>
> > On Sep 19, 2:22 am, Tim Nagel  wrote:
>
> > > I wouldnt be looking into the cache classes for methods to use - they're
> > > auto generated, and the format used may change. (Unlikely but possible) 
> > > The
> > > method I use to get things, based on looking at other projects at
> > > symfony2bundles is
>
> > > $em = $this->container->get('doctrine.orm.entity_manager');
>
> > > You get the string from the DI config in each component you're interested
> > > in.
>
> > > As for needing table name and other info - no, @Entity is enough to define
> > > an entity. Doctrine will use its default name schemes without them.
>
> > > t
>
> > > On 19/09/2010 6:58 AM, "Richard D Shank"  wrote:
>
> > > I think you'll need to have your table name and maybe some other info, I
> > > don't remember off hand.  Here is more info about 
> > > doctrine2http://www.doctrine-project.org/projects/orm/2.0/docs/reference/enSpe...
> > > read the Annotations Reference chapter.
>
> > > Richard
>
> > > On 09/18/2010 12:23 PM, Dennis Jacobfeuerborn wrote:
>
> > > > I just wanted to be sure that this is rea...
>
>

-- 
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: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread Dennis Jacobfeuerborn
Hm, so I found that I apparently can store the yml files in Resources/
config/doctrine/metadata/orm/*.yml.
However when I do so doctrine:schema:create no longer dumps the
User.php file but still says "No Metadata
Classes to process". It doesn't even matter what the yaml file
contains (e.g. some random garbage).

On Sep 19, 3:29 am, Dennis Jacobfeuerborn 
wrote:
> That still leaves the question why a) doctrine:schema:create outputs
> the contents of Entity/User.php on the screen and b) says "No Metadata
> Classes to process." after doing so.
> In Symfony1 I used yaml to define the schema but I don't know where to
> put the yaml file for the schema definition in Symfony2 or how to tell
> Symfony2 to use the yaml schema and generate the classes from that.
>
> On Sep 19, 2:22 am, Tim Nagel  wrote:
>
> > I wouldnt be looking into the cache classes for methods to use - they're
> > auto generated, and the format used may change. (Unlikely but possible) The
> > method I use to get things, based on looking at other projects at
> > symfony2bundles is
>
> > $em = $this->container->get('doctrine.orm.entity_manager');
>
> > You get the string from the DI config in each component you're interested
> > in.
>
> > As for needing table name and other info - no, @Entity is enough to define
> > an entity. Doctrine will use its default name schemes without them.
>
> > t
>
> > On 19/09/2010 6:58 AM, "Richard D Shank"  wrote:
>
> > I think you'll need to have your table name and maybe some other info, I
> > don't remember off hand.  Here is more info about 
> > doctrine2http://www.doctrine-project.org/projects/orm/2.0/docs/reference/enSpe...
> > read the Annotations Reference chapter.
>
> > Richard
>
> > On 09/18/2010 12:23 PM, Dennis Jacobfeuerborn wrote:
>
> > > I just wanted to be sure that this is rea...

-- 
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: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread Dennis Jacobfeuerborn
That still leaves the question why a) doctrine:schema:create outputs
the contents of Entity/User.php on the screen and b) says "No Metadata
Classes to process." after doing so.
In Symfony1 I used yaml to define the schema but I don't know where to
put the yaml file for the schema definition in Symfony2 or how to tell
Symfony2 to use the yaml schema and generate the classes from that.

On Sep 19, 2:22 am, Tim Nagel  wrote:
> I wouldnt be looking into the cache classes for methods to use - they're
> auto generated, and the format used may change. (Unlikely but possible) The
> method I use to get things, based on looking at other projects at
> symfony2bundles is
>
> $em = $this->container->get('doctrine.orm.entity_manager');
>
> You get the string from the DI config in each component you're interested
> in.
>
> As for needing table name and other info - no, @Entity is enough to define
> an entity. Doctrine will use its default name schemes without them.
>
> t
>
> On 19/09/2010 6:58 AM, "Richard D Shank"  wrote:
>
> I think you'll need to have your table name and maybe some other info, I
> don't remember off hand.  Here is more info about 
> doctrine2http://www.doctrine-project.org/projects/orm/2.0/docs/reference/enSpe...
> read the Annotations Reference chapter.
>
> Richard
>
> On 09/18/2010 12:23 PM, Dennis Jacobfeuerborn wrote:
>
>
>
> > I just wanted to be sure that this is rea...

-- 
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: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread Tim Nagel
I wouldnt be looking into the cache classes for methods to use - they're
auto generated, and the format used may change. (Unlikely but possible) The
method I use to get things, based on looking at other projects at
symfony2bundles is

$em = $this->container->get('doctrine.orm.entity_manager');

You get the string from the DI config in each component you're interested
in.

As for needing table name and other info - no, @Entity is enough to define
an entity. Doctrine will use its default name schemes without them.


t


On 19/09/2010 6:58 AM, "Richard D Shank"  wrote:

I think you'll need to have your table name and maybe some other info, I
don't remember off hand.  Here is more info about doctrine2
http://www.doctrine-project.org/projects/orm/2.0/docs/reference/enSpecifically
read the Annotations Reference chapter.

Richard



On 09/18/2010 12:23 PM, Dennis Jacobfeuerborn wrote:
>
> I just wanted to be sure that this is rea...

-- 
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: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread Richard D Shank
I think you'll need to have your table name and maybe some other info, I 
don't remember off hand.  Here is more info about doctrine2 
http://www.doctrine-project.org/projects/orm/2.0/docs/reference/en 
Specifically read the Annotations Reference chapter.


Richard

On 09/18/2010 12:23 PM, Dennis Jacobfeuerborn wrote:

I just wanted to be sure that this is really the way to do it and not
some kind of workaround.
Thanks for the pointer.

Now I run into trouble with the ORM:
http://docs.symfony-reloaded.org/guides/doctrine/orm/overview.html

I saved the User class in the Entity directory but when I issue the
doctrine:schema:create action symfony only dumps the contents of the
file in the shell and then says "No Metadata Classes to process." as
if it doesn't see the @Entity, @Column, etc. metadata in the file:

[den...@nexusd dam]$ php hello/console doctrine:schema:create
// Application/HelloBundle/Entity/User.php

namespace Application\HelloBundle\Entity;

/**
  * @Entity
  */
class User
{
...
}

No Metadata Classes to process.
[den...@nexusd dam]$

On Sep 18, 8:20 pm, Richard D Shank  wrote:
   

The documentation is a little out of date. Its part of the fun of
shooting at a moving target :)

Bascially, by looking in the ~ProjectContainer.php, in the cache folder,
you can find the method names of the services that are available.  They
can be called from any container.

Since the controller implements the ContainerAwareInterface, it has
direct access to the container.**  Because of this, you could also do
$conn = $this['doctrine.dbal.default_connection']
from the controller.  This looks more like what you see in the
documentation.

Spend some time with the ~ProjectContainer.php file.  Look in the
getDefaultParameters() method to see all of the wonderful things that
are available in the container.

Richard

On 09/18/2010 11:10 AM, Dennis Jacobfeuerborn wrote:

 

I'm not sure I understand what you are trying to say. I basically try
to get this example going:
http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html
   
 

That doesn't mention "getDoctrine_Dbal_DefaultConnectionService()"
anywhere.
   
 

On Sep 18, 7:57 pm, spike3111wrote:
   
 

You have to look in the cache, the methods generated there. Surely
this is getDoctrine_Dbal_DefaultConnectionService() you need.
 
 

On 18 sep, 19:37, Dennis Jacobfeuerborn
wrote:
 
 

Hi,
I'm playing around in the sandbox to get a feel for Symfony2 (I
already have Symfony1 experience). After trying to get the Doctrine
stuff going it ran into trouble. After enabling the doctrine dbal and
orm in the config file I inserted the following line from the docs in
my code:
   
 

$conn = $this->container->getService('database_connection');
   
 

This results in an exception:
Call to undefined method helloDevDebugProjectContainer::getService
   
 

The code that creates the exception is this:
public function __call($method, $arguments)
{
   if (!preg_match('/^get(.+)Service$/', $method, $match)) {
   throw new \BadMethodCallException(sprintf('Call to
undefined method %s::%s.', get_class($this), $method));
   
 

}
   
 

What is peculiar here is that the regular expression can never match
the getService() call. Is this an error in the documentation or should
the regexp rather be "get(.*)Service" to allow for the call in the
docs to be valid?
   
 

Regards,
Dennis
   
   


--
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: individual User layouts?

2010-09-18 Thread Dennis
Another approach is to do it via OOP design.

Either use a Strategy for each user/group,
or use inheritance, extending/modifying the object for each user/
group.

On Sep 17, 8:34 am, Gustavo Adrian 
wrote:
> Create a baseAction with a preExecute method where you check which user is
> logged in, and change the layout accordingly. Then, extend your own actions
> from this baseAction:
>
> // myApp/lib/actions/baseAction.class.php
> class baseAction extends sfActions
> {
>     public function preExecute()
>     {
>         parent::preExecute();
>
>         // Here you check your user with your own logic
>         if ( $myUserIsFromIBM )
>         {
>             $this->setLayout( 'IBMLayout' );
>         }
>         else
>         {
>             $this->setLayout( 'anotherLayout' );
>         }
>     }
>
> }
>
> Then in your actions, just extend from the baseAction
>
> class homeAction extends baseAction
> {
>     public function preExecute()
>     {
>          parent::preExecute();
>
>          // Do other stuff here
>     }
>
> }
>
> Best regards.
>
> On Fri, Sep 17, 2010 at 8:56 AM, marc  wrote:
> > Hi everyone,
>
> > i'm playing around with symfony 1.4 for about two month now and i like
> > it very much.
> > I'm thinking about replacing our portal with a symfony application.
> > For that i need to implement individual user layouts. We have
> > customers that want to have their portal in corporate style. So i
> > wonder how i could get this in symfony. The system has to be able to
> > change the layout and the module templates by user authentication and
> > the different Styles should be easy to maintain.  Just some ideas
> > would be great.
>
> > Thank you,
> > Marc Eilhard
>
> > --
> > 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: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread Dennis Jacobfeuerborn
I just wanted to be sure that this is really the way to do it and not
some kind of workaround.
Thanks for the pointer.

Now I run into trouble with the ORM:
http://docs.symfony-reloaded.org/guides/doctrine/orm/overview.html

I saved the User class in the Entity directory but when I issue the
doctrine:schema:create action symfony only dumps the contents of the
file in the shell and then says "No Metadata Classes to process." as
if it doesn't see the @Entity, @Column, etc. metadata in the file:

[den...@nexusd dam]$ php hello/console doctrine:schema:create
// Application/HelloBundle/Entity/User.php

namespace Application\HelloBundle\Entity;

/**
 * @Entity
 */
class User
{
...
}

No Metadata Classes to process.
[den...@nexusd dam]$

On Sep 18, 8:20 pm, Richard D Shank  wrote:
> The documentation is a little out of date. Its part of the fun of
> shooting at a moving target :)
>
> Bascially, by looking in the ~ProjectContainer.php, in the cache folder,
> you can find the method names of the services that are available.  They
> can be called from any container.
>
> Since the controller implements the ContainerAwareInterface, it has
> direct access to the container.**  Because of this, you could also do
> $conn = $this['doctrine.dbal.default_connection']
> from the controller.  This looks more like what you see in the
> documentation.
>
> Spend some time with the ~ProjectContainer.php file.  Look in the
> getDefaultParameters() method to see all of the wonderful things that
> are available in the container.
>
> Richard
>
> On 09/18/2010 11:10 AM, Dennis Jacobfeuerborn wrote:
>
> > I'm not sure I understand what you are trying to say. I basically try
> > to get this example going:
> >http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html
>
> > That doesn't mention "getDoctrine_Dbal_DefaultConnectionService()"
> > anywhere.
>
> > On Sep 18, 7:57 pm, spike3111  wrote:
>
> >> You have to look in the cache, the methods generated there. Surely
> >> this is getDoctrine_Dbal_DefaultConnectionService() you need.
>
> >> On 18 sep, 19:37, Dennis Jacobfeuerborn
> >> wrote:
>
> >>> Hi,
> >>> I'm playing around in the sandbox to get a feel for Symfony2 (I
> >>> already have Symfony1 experience). After trying to get the Doctrine
> >>> stuff going it ran into trouble. After enabling the doctrine dbal and
> >>> orm in the config file I inserted the following line from the docs in
> >>> my code:
>
> >>> $conn = $this->container->getService('database_connection');
>
> >>> This results in an exception:
> >>> Call to undefined method helloDevDebugProjectContainer::getService
>
> >>> The code that creates the exception is this:
> >>> public function __call($method, $arguments)
> >>> {
> >>>   if (!preg_match('/^get(.+)Service$/', $method, $match)) {
> >>>               throw new \BadMethodCallException(sprintf('Call to
> >>> undefined method %s::%s.', get_class($this), $method));
>
> >>> }
>
> >>> What is peculiar here is that the regular expression can never match
> >>> the getService() call. Is this an error in the documentation or should
> >>> the regexp rather be "get(.*)Service" to allow for the call in the
> >>> docs to be valid?
>
> >>> Regards,
> >>>    Dennis

-- 
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 1.2] dropping a record from a doctrine_collection

2010-09-18 Thread Michael Hodges
SOLVED - used offsetUnset method

  foreach ($fees as $fee_ofs => $fee)

  {
  $drop_from_list = false;
  // peculiar business logic goes here . . .
  if ($drop_from_list)
  {
// Drop fee from the collection.
$fees->offsetUnset($fee_ofs);
  }
  }
  return $fees;
}

On Thu, Sep 16, 2010 at 7:33 PM, Michael Hodges  wrote:

> Hello all,
>
> I'm not having a luck looking this up, or with the description in the
> documentation.
> Hoping you can help.
>
> I have a function that creates a doctrine_collection.  For reasons not
> explained here
> it is not feasible to limit the collection utilizing only DQL, so I thought
> to loop through
> the collection, and with the peculiar business logic needed, drop those
> records that
> should not be returned.
>
> It appears that the two import methods are ->key and ->remove.  I seem to
> be doing
> something wrong with the first one since I'm unable to successfully remove
> any of the
> records.  I've run this through a debugger (netbeans with xdebug) and the
> flow through
> the code is correct, but the remove statement doesn't effectively remove
> the record.
>
> Any ideas what I'm overlooking?
> Thanks
>  - Michael
>
> public static function getFeesForInvoice()
> {
>   $fees = Doctrine_Query::create()
>   ->select('fee_name, fee_amount, mandatory_for')
>   ->from('StudentFee')
>   ->orderBy('fee_description')
>   ->execute();
>
>   foreach ($fees as $fee)
>   {
>   $drop_from_list = false;
>   // peculiar business logic goes here . . .
>   if ($drop_from_list)
>   {
> // Remove fee from the collection.
> $doctrine_key = $fees->key();
> $fees->remove($doctrine_key);
>   }
>   }
>   return $fees;
> }
>

-- 
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: A bug in the Web debug toolbar notification?

2010-09-18 Thread Jorge Luis
I think that this is a common need, I send a lot of emails from
actions and then do some redirect to other place on the application,
maybe this could be taken in account to some "patch" that show the
email sent in the first redirection or something more elegant. What do
you guys think?

On 17 sep, 02:38, "Sebastien Armand [Pink]"  wrote:
> Your crud generate module never sends a reply directly from the create and
> update actions.
> You are redirected either to the edit action or to the show action if you
> generated a module with the show option on.
>
> So the answer you send to the browser from inside "create" is only a http
> header with the "location" set to the url for the "edit" or "show" action.
>
> Then the debug toolbar that you see is the one from that second action.
>
> Everything can still be seen in the log though if you need it.
>
> On Thu, Sep 16, 2010 at 6:07 AM, Alan Bem  wrote:
> > Do you redirect?
>
> > 2010/9/15 Jorge Luis 
>
> > Hi:
>
> >> It's normal that when we send an email from an action that don't have
> >> any associated template there is no notification of this in the Web
> >> debug toolbar?
>
> >> I'm sending a confirmation email from a create action (from a CRUD
> >> generated module) but i don't get any email icon on the Web debug
> >> toolbar, but if i send the email from the new action (that has a
> >> newSuccess.php template) the notification system works as a charm!.
>
> >> Is this normal?
>
> >> Greetings!
>
> >> --
> >> 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: A bug in the Web debug toolbar notification?

2010-09-18 Thread Jorge Luis
Thanks for the reply!

On 17 sep, 02:38, "Sebastien Armand [Pink]"  wrote:
> Your crud generate module never sends a reply directly from the create and
> update actions.
> You are redirected either to the edit action or to the show action if you
> generated a module with the show option on.
>
> So the answer you send to the browser from inside "create" is only a http
> header with the "location" set to the url for the "edit" or "show" action.
>
> Then the debug toolbar that you see is the one from that second action.
>
> Everything can still be seen in the log though if you need it.
>
> On Thu, Sep 16, 2010 at 6:07 AM, Alan Bem  wrote:
> > Do you redirect?
>
> > 2010/9/15 Jorge Luis 
>
> > Hi:
>
> >> It's normal that when we send an email from an action that don't have
> >> any associated template there is no notification of this in the Web
> >> debug toolbar?
>
> >> I'm sending a confirmation email from a create action (from a CRUD
> >> generated module) but i don't get any email icon on the Web debug
> >> toolbar, but if i send the email from the new action (that has a
> >> newSuccess.php template) the notification system works as a charm!.
>
> >> Is this normal?
>
> >> Greetings!
>
> >> --
> >> 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: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread spike3111
I think the documentation is not updated. Look in the cache folder,
the file helloDevDebugProjectContainer.php. The method is:
/**
 * Gets the 'doctrine.dbal.default_connection' service.
 *
 * This service is shared.
 * This method always returns the same instance of the service.
 *
 * @return Doctrine\DBAL\DriverManager A Doctrine\DBAL
\DriverManager instance.
 */
protected function getDoctrine_Dbal_DefaultConnectionService()
{
if (isset($this->shared['doctrine.dbal.default_connection']))
return $this->shared['doctrine.dbal.default_connection'];

$instance = call_user_func(array('Doctrine\\DBAL\
\DriverManager', 'getConnection'), array('driverClass' => 'Doctrine\
\DBAL\\Driver\\PDOMySql\\Driver', 'driverOptions' => array(), 'dbname'
=> 'mydatabase', 'host' => 'localhost', 'user' => 'root'), $this-
>getDoctrine_Dbal_DefaultConnection_ConfigurationService(), $this-
>getDoctrine_Dbal_DefaultConnection_EventManagerService());
$this->shared['doctrine.dbal.default_connection'] = $instance;

return $instance;
}


Now you can do in your controller:
$em = $this->container->getDoctrine_Dbal_DefaultConnectionService();
$statement = $em->prepare('SELECT * FROM User');
$statement->execute();
$users = $statement->fetchAll();

On 18 sep, 20:10, Dennis Jacobfeuerborn 
wrote:
> I'm not sure I understand what you are trying to say. I basically try
> to get this example 
> going:http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html
>
> That doesn't mention "getDoctrine_Dbal_DefaultConnectionService()"
> anywhere.
>
> On Sep 18, 7:57 pm, spike3111  wrote:
>
> > You have to look in the cache, the methods generated there. Surely
> > this is getDoctrine_Dbal_DefaultConnectionService() you need.
>
> > On 18 sep, 19:37, Dennis Jacobfeuerborn 
> > wrote:
>
> > > Hi,
> > > I'm playing around in the sandbox to get a feel for Symfony2 (I
> > > already have Symfony1 experience). After trying to get the Doctrine
> > > stuff going it ran into trouble. After enabling the doctrine dbal and
> > > orm in the config file I inserted the following line from the docs in
> > > my code:
>
> > > $conn = $this->container->getService('database_connection');
>
> > > This results in an exception:
> > > Call to undefined method helloDevDebugProjectContainer::getService
>
> > > The code that creates the exception is this:
> > > public function __call($method, $arguments)
> > > {
> > >  if (!preg_match('/^get(.+)Service$/', $method, $match)) {
> > >              throw new \BadMethodCallException(sprintf('Call to
> > > undefined method %s::%s.', get_class($this), $method));
>
> > > }
>
> > > What is peculiar here is that the regular expression can never match
> > > the getService() call. Is this an error in the documentation or should
> > > the regexp rather be "get(.*)Service" to allow for the call in the
> > > docs to be valid?
>
> > > Regards,
> > >   Dennis
>
>

-- 
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: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread Richard D Shank
The documentation is a little out of date. Its part of the fun of 
shooting at a moving target :)


Bascially, by looking in the ~ProjectContainer.php, in the cache folder, 
you can find the method names of the services that are available.  They 
can be called from any container.


Since the controller implements the ContainerAwareInterface, it has 
direct access to the container.**  Because of this, you could also do

$conn = $this['doctrine.dbal.default_connection']
from the controller.  This looks more like what you see in the 
documentation.


Spend some time with the ~ProjectContainer.php file.  Look in the 
getDefaultParameters() method to see all of the wonderful things that 
are available in the container.


Richard

On 09/18/2010 11:10 AM, Dennis Jacobfeuerborn wrote:

I'm not sure I understand what you are trying to say. I basically try
to get this example going:
http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html

That doesn't mention "getDoctrine_Dbal_DefaultConnectionService()"
anywhere.

On Sep 18, 7:57 pm, spike3111  wrote:
   

You have to look in the cache, the methods generated there. Surely
this is getDoctrine_Dbal_DefaultConnectionService() you need.

On 18 sep, 19:37, Dennis Jacobfeuerborn
wrote:

 

Hi,
I'm playing around in the sandbox to get a feel for Symfony2 (I
already have Symfony1 experience). After trying to get the Doctrine
stuff going it ran into trouble. After enabling the doctrine dbal and
orm in the config file I inserted the following line from the docs in
my code:
   
 

$conn = $this->container->getService('database_connection');
   
 

This results in an exception:
Call to undefined method helloDevDebugProjectContainer::getService
   
 

The code that creates the exception is this:
public function __call($method, $arguments)
{
  if (!preg_match('/^get(.+)Service$/', $method, $match)) {
  throw new \BadMethodCallException(sprintf('Call to
undefined method %s::%s.', get_class($this), $method));
   
 

}
   
 

What is peculiar here is that the regular expression can never match
the getService() call. Is this an error in the documentation or should
the regexp rather be "get(.*)Service" to allow for the call in the
docs to be valid?
   
 

Regards,
   Dennis
   
   


--
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: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread Dennis Jacobfeuerborn
I'm not sure I understand what you are trying to say. I basically try
to get this example going:
http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html

That doesn't mention "getDoctrine_Dbal_DefaultConnectionService()"
anywhere.

On Sep 18, 7:57 pm, spike3111  wrote:
> You have to look in the cache, the methods generated there. Surely
> this is getDoctrine_Dbal_DefaultConnectionService() you need.
>
> On 18 sep, 19:37, Dennis Jacobfeuerborn 
> wrote:
>
> > Hi,
> > I'm playing around in the sandbox to get a feel for Symfony2 (I
> > already have Symfony1 experience). After trying to get the Doctrine
> > stuff going it ran into trouble. After enabling the doctrine dbal and
> > orm in the config file I inserted the following line from the docs in
> > my code:
>
> > $conn = $this->container->getService('database_connection');
>
> > This results in an exception:
> > Call to undefined method helloDevDebugProjectContainer::getService
>
> > The code that creates the exception is this:
> > public function __call($method, $arguments)
> > {
> >  if (!preg_match('/^get(.+)Service$/', $method, $match)) {
> >              throw new \BadMethodCallException(sprintf('Call to
> > undefined method %s::%s.', get_class($this), $method));
>
> > }
>
> > What is peculiar here is that the regular expression can never match
> > the getService() call. Is this an error in the documentation or should
> > the regexp rather be "get(.*)Service" to allow for the call in the
> > docs to be valid?
>
> > Regards,
> >   Dennis

-- 
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: [Symfony2 - Sandbox PR3] Symfony2/Doctrine2 problem repository

2010-09-18 Thread Richard D Shank
You can do one or the other, but not both.  If you didn't have the xml 
file, it would read the annotation from the class.



On 09/18/2010 10:01 AM, spike3111 wrote:

I did not understand the need to define the class in the mapping and
not in the entity class. I am French, I am mistaken in translating the
documentation (ok it is a hoax:))

So I added in my file xxx.dcm.xml this option:


And control doctrine: generate: repositories works well!

it can be used to other ...

On 18 sep, 18:28, Richard D Shank  wrote:
   

Try capitalizing @entity (@Entity)

On 09/18/2010 08:41 AM, spike3111 wrote:

 

I try to set up a simple custom repository, looking at the
documentation doctrine2. I first tried the command
doctrine:generate:repositories, which does not make mistakes, but that
does not work either. So I created a class Entity
CustomCategorieRepository
   
 

   
 

use Doctrine\ORM\EntityRepository;
   
 

class CustomCategorieRepository extends EntityRepository
{
  public function getAllCategorie()
  {
  return $this->_em->createQuery('SELECT u FROM Application
\HelloBundle\Entity\Categorie u LEFT JOIN u.articles a')
  ->getResult();
  }
}
   
 

And in my entity I added annotation @entity:
   
 

namespace Application\HelloBundle\Entity;
   
 

/**
   * Application\HelloBundle\Entity\Categorie
   * @entity(repositoryClass="Application\HelloBundle\Entity
\CustomCategorieRepository")
   */
class Categorie
{
   
 

I get an error on the fact that my custom repository is not taken into
account.
   


 
   


--
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: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread spike3111
You have to look in the cache, the methods generated there. Surely
this is getDoctrine_Dbal_DefaultConnectionService() you need.


On 18 sep, 19:37, Dennis Jacobfeuerborn 
wrote:
> Hi,
> I'm playing around in the sandbox to get a feel for Symfony2 (I
> already have Symfony1 experience). After trying to get the Doctrine
> stuff going it ran into trouble. After enabling the doctrine dbal and
> orm in the config file I inserted the following line from the docs in
> my code:
>
> $conn = $this->container->getService('database_connection');
>
> This results in an exception:
> Call to undefined method helloDevDebugProjectContainer::getService
>
> The code that creates the exception is this:
> public function __call($method, $arguments)
> {
>  if (!preg_match('/^get(.+)Service$/', $method, $match)) {
>              throw new \BadMethodCallException(sprintf('Call to
> undefined method %s::%s.', get_class($this), $method));
>
> }
>
> What is peculiar here is that the regular expression can never match
> the getService() call. Is this an error in the documentation or should
> the regexp rather be "get(.*)Service" to allow for the call in the
> docs to be valid?
>
> Regards,
>   Dennis

-- 
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] Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread Dennis Jacobfeuerborn
Hi,
I'm playing around in the sandbox to get a feel for Symfony2 (I
already have Symfony1 experience). After trying to get the Doctrine
stuff going it ran into trouble. After enabling the doctrine dbal and
orm in the config file I inserted the following line from the docs in
my code:

$conn = $this->container->getService('database_connection');

This results in an exception:
Call to undefined method helloDevDebugProjectContainer::getService

The code that creates the exception is this:
public function __call($method, $arguments)
{
 if (!preg_match('/^get(.+)Service$/', $method, $match)) {
 throw new \BadMethodCallException(sprintf('Call to
undefined method %s::%s.', get_class($this), $method));
}

What is peculiar here is that the regular expression can never match
the getService() call. Is this an error in the documentation or should
the regexp rather be "get(.*)Service" to allow for the call in the
docs to be valid?

Regards,
  Dennis

-- 
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: [Symfony2 - Sandbox PR3] Symfony2/Doctrine2 problem repository

2010-09-18 Thread spike3111
I did not understand the need to define the class in the mapping and
not in the entity class. I am French, I am mistaken in translating the
documentation (ok it is a hoax:))

So I added in my file xxx.dcm.xml this option:


And control doctrine: generate: repositories works well!

it can be used to other ...

On 18 sep, 18:28, Richard D Shank  wrote:
> Try capitalizing @entity (@Entity)
>
> On 09/18/2010 08:41 AM, spike3111 wrote:
>
> > I try to set up a simple custom repository, looking at the
> > documentation doctrine2. I first tried the command
> > doctrine:generate:repositories, which does not make mistakes, but that
> > does not work either. So I created a class Entity
> > CustomCategorieRepository
>
> >  > namespace Application\HelloBundle\Entity;
>
> > use Doctrine\ORM\EntityRepository;
>
> > class CustomCategorieRepository extends EntityRepository
> > {
> >      public function getAllCategorie()
> >      {
> >          return $this->_em->createQuery('SELECT u FROM Application
> > \HelloBundle\Entity\Categorie u LEFT JOIN u.articles a')
> >                  ->getResult();
> >      }
> > }
>
> > And in my entity I added annotation @entity:
> > 
> > namespace Application\HelloBundle\Entity;
>
> > /**
> >   * Application\HelloBundle\Entity\Categorie
> >   * @entity(repositoryClass="Application\HelloBundle\Entity
> > \CustomCategorieRepository")
> >   */
> > class Categorie
> > {
>
> > I get an error on the fact that my custom repository is not taken into
> > account.
>
>

-- 
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 - Pulling the pieces together

2010-09-18 Thread Richard D Shank
Right now, the best thing to do is to look at other people's work.  Head 
over to http://symfony2bundles.org/ and look at some of the projects.


On 09/17/2010 05:31 AM, Donald Tyler wrote:
One thing I've noticed with the documentation (unless I'm just missing 
it), is that there seems to be documentation on the various parts of 
the framework (Validation, Forms, ORM etc), but no documentation on 
how to best integrate these pieces in a cohesive project.


For example, I'm not sure where I would define a model in the project, 
and if there would be one shared model, or if I'm supposed to be 
created a model for each bundle.
I may be making a false assumption, but it might be helpful to find some 
articles on MVC (Model View Controller)


I'd appreciate it if anyone who is building a project in Symfony 2 
could give me some pointers on how a real world project is structured. 
For example:


Model:
Where do you store your model in your project?
Generally, your model goes in your Bundle in an Entity folder for ORM 
and Document folder for ODM.

Do you break your model into different bundles?
Personally, I try to keep related models together, but it really depends 
on what you are doing.  For example, if you are doing an address, you 
might have a model for regions and a model for countries.  It would make 
sense to have those in an AddressBundle, along with the model for the 
actual address.  However, if you are making a contact, it would use the 
address and a phone number, but those would probably all be in 3 
separate bundles.


Forms:
Do you create forms on the fly, or do you build form classes?
Where do you store forms if you build classes for them?

I haven't played with the forms enough to have any answers on this :).


If there's any blog posts or guide's online along these lines I'd 
appreciate a link to those too. I know it's a little early in Symfony 
2's development for extensive documentation, but I'd like to start 
experimenting with at least a little guidance.
Github is your friend.  Looking at code and reading the wikis for the 
projects are great sources for info.




- Donald
--
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] [Symfony2 - Sandbox PR3] Symfony2/Doctrine2 problem repository

2010-09-18 Thread Richard D Shank

Try capitalizing @entity (@Entity)

On 09/18/2010 08:41 AM, spike3111 wrote:

I try to set up a simple custom repository, looking at the
documentation doctrine2. I first tried the command
doctrine:generate:repositories, which does not make mistakes, but that
does not work either. So I created a class Entity
CustomCategorieRepository

_em->createQuery('SELECT u FROM Application
\HelloBundle\Entity\Categorie u LEFT JOIN u.articles a')
 ->getResult();
 }
}

And in my entity I added annotation @entity:
   


--
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] sfWidgetFormDoctrineChoice to show non-multi selectable list

2010-09-18 Thread Daniel Lohse
You mean a normal list of radio buttons, right? Just set the 'expanded' option 
to true and the 'multiple' option to false and you should be golden.

Cheers, Daniel

Sent from my iPhone4

On Sep 18, 2010, at 5:57 PM, Martin Henits  wrote:

> Hi,
> 
> I was wondering if anyone knows how to use sfWidgetFormDoctrineChoice
> to display a non-multi selectable list?
> 
> I don't want to see a drop-down menu. I want to see a list of options
> in a box.
> Also I don't want to set the multiple option as true.
> 
> any clue?
> thanks a lot
> 
> -- 
> 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: sfWidgetFormDoctrineChoice to show non-multi selectable list

2010-09-18 Thread Martin Henits
well I found the answer, so I share it in case of any help for others.

new sfWidgetFormDoctrineChoice(array(
'model' => $this->getRelatedModelName('myModule'),
'add_empty' => 'Please Select ...'),
  array('size' => '4'))


On Sep 18, 4:57 pm, Martin Henits  wrote:
> Hi,
>
> I was wondering if anyone knows how to use sfWidgetFormDoctrineChoice
> to display a non-multi selectable list?
>
> I don't want to see a drop-down menu. I want to see a list of options
> in a box.
> Also I don't want to set the multiple option as true.
>
> any clue?
> thanks a lot

-- 
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] sfWidgetFormDoctrineChoice to show non-multi selectable list

2010-09-18 Thread Martin Henits
Hi,

I was wondering if anyone knows how to use sfWidgetFormDoctrineChoice
to display a non-multi selectable list?

I don't want to see a drop-down menu. I want to see a list of options
in a box.
Also I don't want to set the multiple option as true.

any clue?
thanks a lot

-- 
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 - Sandbox PR3] Symfony2/Doctrine2 problem repository

2010-09-18 Thread spike3111
I try to set up a simple custom repository, looking at the
documentation doctrine2. I first tried the command
doctrine:generate:repositories, which does not make mistakes, but that
does not work either. So I created a class Entity
CustomCategorieRepository

_em->createQuery('SELECT u FROM Application
\HelloBundle\Entity\Categorie u LEFT JOIN u.articles a')
->getResult();
}
}

And in my entity I added annotation @entity:
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Choices Grouping

2010-09-18 Thread ScherlOMatic
Hello!

First of all which version is your project based on? If < 1.4 think
about an upgrade and maybe switch to Doctrine as well. I also started
with propel but no way...

So you wanna have checkboxes or not?
Maybe you could give me a small draft (picture) of it.

BR

On 17 Sep., 20:15, Gerda Graciela Rodrigues  wrote:
> Hi
> Thanks!
>
> but.. not to solve it ...
>
> will be used checkbox
>
> must read:
>
> Computers
> ( ) PHP ( ) Symfony ( ) Postgree
> Mathematics
> ( ) Statistics ( ) Probability
>
> this reading:
>
> ( ) PHP
> ( ) Symfony
> ( ) Postgree
> ( ) Statistics
> ( ) Probability
>
> computer where this table QualificacaoInteresseArea
> php and this table QualificacaoInteresse
>
> Look my code.
> - code 
>
>   public function configure()
>   {
>    $this->setWidgets(array(
>       'id'                        => new sfWidgetFormInputHidden(),
>       'curriculo_id'              => new sfWidgetFormInputHidden(),
>       'qualificacao_interesse_id' => new
> sfWidgetFormPropelChoice(array('model' => 'QualificacaoInteresse',
> 'add_empty' => false, 'expanded' => true, 'multiple' => true)),
>       'created_at'                => new sfWidgetFormInputHidden(),
>       'updated_at'                => new sfWidgetFormInputHidden(),
>     ));
>
>    $this->widgetSchema->setLabels(array(
>     'qualificacao_interesse_id'                 => 'Qualificações &
> Interesses:',
>      ));
>
>     $this->setValidators(array(
>       'id'                        => new
> sfValidatorPropelChoice(array('model' => 'QualificacaoInteresseCv', 'column'
> => 'id', 'required' => false)),
>       'curriculo_id'              => new
> sfValidatorPropelChoice(array('model' => 'Curriculo', 'column' => 'id')),
>       'qualificacao_interesse_id' => new
> sfValidatorPropelChoice(array('model' => 'QualificacaoInteresse', 'column'
> => 'id', 'multiple' => true)),
>       'created_at'                => new
> sfValidatorDateTime(array('required' => false)),
>       'updated_at'                => new
> sfValidatorDateTime(array('required' => false)),
>     ));
> -
>
> 2010/9/17 ScherlOMatic 
>
> > Hello!
>
> > You are using the wrong widget. Take a look at the 'select' widgets.
>
> > One possibility would be:
>
> > $this->setWidgets(array(
> >        'name' => new sfWidgetFormSelect(array(
> >            'choices' => self::$choices,
> >            'multiple' => true,
> >        ))
> >    ));
>
> > And please try to post code which is running, because of spaces and
> > case-sensitive words.
>
> > BR
>
> > On 16 Sep., 16:49, Gerda Graciela  wrote:
> > > Hi!!!
>
> > > I have two tables: Qualification and Eligibility Category.
> > > I want to do it as Cookbook where 'Europe' and 'America' are on the
> > > table Qualification Category. 'France' => 'France', 'Spain' =>
> > > 'Spain', 'Italy' => 'Italy' are on the table qualification.
>
> > > Can anyone help me?
>
> > > --
> > > $ Choices = array (
> > >   'Europe' => array ('France' => 'France', 'Spain' => 'Spain', 'Italy'
> > > => 'Italy'),
> > >   'America' => array ('USA' => 'USA', 'Canada' => 'Canada', 'Brazil'
> > > => 'Brazil')
> > > );
>
> > > $ W = new sfWidgetFormChoice (array (
> > >   'Choices' => $ choices,
> > >   'Multiple' => true,
> > >   'Expanded' => true,
> > >   'Renderer_options' => array ('template' => 'group %%  > > strong>% options%')
> > > ));
>
> > --
> > 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] automated response

2010-09-18 Thread Saad Tazi | Twist Image
Merci de votre message.

Je suis présentement absent du bureau. Je serai de retour le 25 septembre. 
L'accès à mes courriels pourrait être limité durant cette période. 
En cas d’urgence, vous pouvez rejoindre notre équipe technique en envoyant un 
courriel à l’adresse suivante: supp...@twistimage.com.

Cordialement,

Saad Tazi

- - - - - - - - - - - - -

Thank you for your message.

I am currently out of the office and will return on September 25th. I will have 
limited access to my e-mail during this period. 
For urgent technical matters, please send an email to supp...@twistimage.com.

Best regards,

Saad Tazi | Senior Web Developer
Twist Image | www.twistimage.com
T - 514 987 9992 x.158
407, rue McGill, 2e étage, Montréal (Québec) H2Y 2G3

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