[symfony-users] Date field displays error of other field. Maybe bug?

2012-06-18 Thread Sasa Vilic
I have two fields in my form, integer and date. Entering letters instead 
numbers in first field causes error message to be displayed on both 
fields. Is this bug in Symfony or I am doing something wrong?


Here are steps to reproduce it:

Controller:
[code]
public function indexAction(Request $request)
{
$defaultData = array(
'field1' => 1,
'field2' => new \DateTime(),
);

$form = $this->createFormBuilder($defaultData)
->add('field1', 'integer', array(
'label' => 'Enter letters here',
))
->add('field2', 'date', array(
'label' => 'Here should show error',
'input' => 'datetime',
'widget' => 'single_text',
'format' => '-MM-dd',
))
->getForm();

if ($request->getMethod() == 'POST') {
$form->bindRequest($request);
if ($form->isValid()) {
// Will do something
}
}

return $this->render('SasaTestBundle:Default:index.html.twig', 
array(

'form' => $form->createView()
));
}
[/code]

View:
[code]


  {{ form_row(form.field1) }}

  {{ form_row(form.field2) }}

  {{ form_rest(form) }}


Submit


[/code]

Routing:
[code]
testForm:
pattern: /test
defaults: { _controller: SasaTestBundle:Default:index }
[/code]

Now, try to enter some letters and instead of number in first field and 
then submit. It will show error on both fields.


I am using version v2.0.14.

--
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] Clearing Cache - Fatal Error

2012-06-18 Thread Nate_L
When I run php app/console clear:cache env=prod (or env=dev), I get a Fatal 
Error:

PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to 
allocate 122880 bytes) in 
/Users/nate/Sites/jobeet.local/vendor/twig/lib/Twig/Node/For.php on line 98

I'm running MAMP - and when I modify the php.ini file to adjust the memory to 
something like 256M, it still throws the error. 

33554432 bytes = 32Mb, so any indication as to where that 32Mb is being pulled 
from? 

-- 
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 cancel PostValidator ?

2012-06-18 Thread Олег Волошин
I set post validator in embedded form:

class myEmbeddedForm extends BaseForm {
  function configure() {
...
$this->validatorSchema->setPostValidator(new sfValidatorCallback(array(
   'callback' => array($this, 'embeddedPostValidator') 
)));
  }

  function embeddedPostValidator($validator, $values) {
  ...
  }
}

And form which include this embedded form has to cancel this post validator in 
embedded form's pre validator?

function myForm extends BaseForm {
  function configure() {
...
$this->embedForm('embedded', new myEmbeddedForm(array(), array(
  ...
)));
...
$this->validatorSchema->setPreValidator(new sfValidatorCallback(array(
  'callback' => array($this, 'myPreValidator')
)));
  }

  function myPreValidator($validator, $values) {
...
// how to cancel post validator in embedded form here?
  }
}

Pleas help me!
Sorry for my bad english.

-- 
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] Domain context

2012-06-18 Thread Marcos Passos
Hi,

I'm developing an application where each user can create his own page with it's 
own domain. My question is: how is the best way to get the user informations by 
site domain (url)? I've thought of working with contextualized factories, 
injecting the URI instance in the factory (DI), returning a user instance by 
domain (url), but I don't know if it is a good pratice. If the user is 
disabled, how do I redirect the user without repeat code in all controllers? In 
the factory certainly isn't the best place to do it.

Thanks,
Marcos

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

2012-06-18 Thread rafael
On Tuesday, May 3, 2011 11:13:47 AM UTC-7, Laurus wrote:
> Hi fellow Symfony2 friends!
> 
> I have webhosting on GoDaddy (I regret it) and trying to run my
> Symfony2 test page on it. Unfortunately I am still receiving this
> line: No input file specified.
> 
> I created new subdomain (test) with webdir (web). So all my Symfony2
> files are in subdomain. I have read multiple posts on other forums how
> to handle this problem but none worked for me
> 
> Do you have experience with deploying Symfony2 on GoDaddy?
> 
> Thank you in advance!



On Tuesday, May 3, 2011 11:13:47 AM UTC-7, Laurus wrote:
> Hi fellow Symfony2 friends!
> 
> I have webhosting on GoDaddy (I regret it) and trying to run my
> Symfony2 test page on it. Unfortunately I am still receiving this
> line: No input file specified.
> 
> I created new subdomain (test) with webdir (web). So all my Symfony2
> files are in subdomain. I have read multiple posts on other forums how
> to handle this problem but none worked for me
> 
> Do you have experience with deploying Symfony2 on GoDaddy?
> 
> Thank you in advance!



On Tuesday, May 3, 2011 11:13:47 AM UTC-7, Laurus wrote:
> Hi fellow Symfony2 friends!
> 
> I have webhosting on GoDaddy (I regret it) and trying to run my
> Symfony2 test page on it. Unfortunately I am still receiving this
> line: No input file specified.
> 
> I created new subdomain (test) with webdir (web). So all my Symfony2
> files are in subdomain. I have read multiple posts on other forums how
> to handle this problem but none worked for me
> 
> Do you have experience with deploying Symfony2 on GoDaddy?
> 
> Thank you in advance!

Hello all,

I am setting up my site on godaddy and had similar problems at the beginning. I 
found my problems by copying app_dev.php to test.php. Removed the first few 
lines of code so Symfony gives me more detail on the errors, such as missing 
config parameters, database errors, etc. It helped me a lot!. Here are the 
lines that I removed:
--
if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
))
) {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file. Check '.basename(__FILE__).' 
for more information.');
}
-
Have fun!
Rafael

-- 
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: Highlighting menu based on controller called

2012-06-18 Thread Pierre de LESPINAY
Couldn't we organize the menu by controller or bundle ?
So we could base the selected item on it

-- 
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.0.15 and dependency management with composer

2012-06-18 Thread Christophe L
Hello,

is there a way to enable the dependency management with composer which is in 
Symphony 2.1 on a Symfony 2.0 project please ?

we are starting a new big project in Symfony2 and we would like to start 
immediately with composer rather than waiting for the 2.1

Thanks in advance for your answer.

Best regards,
Christophe

-- 
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] Disable ssl in swift mailer

2011-12-22 Thread anil kumar
Hi,

Could any pls tell how to disable SSL in swift mailer

$transport = Swift_SmtpTransport::newInstance($this->_smtp,$this->_port)
->setUsername($this->_username)
->setPassword($this->_pwd)
->setEncryption('')
;

This is the code snipped of swift mailer im using.

-- 
*Thanks & Regards,**

ANIL

*

-- 
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 Form as a Standalone component

2011-12-22 Thread Hristo Salabashev
Hi Hari,

you can check how is it done in Silex:

https://github.com/fabpot/Silex/blob/master/src/Silex/Provider/FormServiceProvider.php

The controller method createFormBuilder translates to

public function createFormBuilder($data = null, array $options = array())
{
return $this->container->get('form.factory')->createBuilder('form',
$data, $options);
}


I guess you will also need to handle form binding yourself as you wont have
the right Request object.

public function bindRequest(Request $request)
{
// Store the bound data in case of a post request
switch ($request->getMethod()) {
case 'POST':
case 'PUT':
$data = array_replace_recursive(
$request->request->get($this->getName(), array()),
$request->files->get($this->getName(), array())
);
break;
case 'GET':
$data = $request->query->get($this->getName(), array());
break;
default:
throw new FormException(sprintf('The request method
"%s" is not supported', $request->getMethod()));
}

return $this->bind($data);
}


Hope that helps
Cheers

On Thu, Dec 1, 2011 at 8:36 PM, Hari K T  wrote:

> Hi Guys ,
>
> I downloaded the Symfony2 Form components .
> I was looking how to create the form object .
> Is it the FormFactory , FormBuilder or anything else ?
>
> I looked the book
>
>
> http://symfony.com/doc/current/book/forms.html#book-form-creating-form-classes
>
> But its mainly on the Symfony controller .
>
> I guess I want to pass the Event Dispatcher Object , Validator Object etc
> to the Form object when creation 
>
> But I am not sure where the entry point to the form is ..
>
> Wondering , so if someone can show me the right path , it may help me to
> go easily .
>
> Thanks
>
> --
> 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] Opinión sobre Symfony e Informática en Castellano

2011-12-21 Thread Leo Barrientos
Hola a todos,

Estoy construyendo una comunidad de informática en castellano inspirado en
mi trabajo com desarrollador de software y de Symfony y me gustaría
invitarles a participar y pedirles su opinión, el sitio es
http://www.estudiaenred.com

Cada semana escribimos de 2 a 4 artículos muy interesantes y también
tenemos cursos de Symfony, Java y otros temas relacionados.

Les agradecería visitar el sitio y suscribirse a nuestro newsletter por que
en el newsletter enviamos cápsulas informativas con material exclusivo, el
último fue un ebook de usabilidad web y el siguiente será de Jquery.

Un saludo y muchas gracias.

-- 
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] MappingException: Class Acme\UserBundle\Entity\User is not a valid entity or mapped super class

2011-12-21 Thread Grzegorz Floryanski
Hi,

 

I am getting such an error:

MappingException: Class Acme\UserBundle\Entity\User is not a valid entity or
mapped super class

 

I tried almost everything but I am stacked with that errorall the time.

 

My User class looks like this :

 

// src/Acme/UserBundle/Entity/User.php

 

namespace Acme\UserBundle\Entity;

 

use FOS\UserBundle\Entity\User as BaseUser;

use Doctrine\ORM\Mapping as ORM;

 

class User extends BaseUser

{

/**

 * @var string

 *

 * @ORM\Column(name="firstname", type="string", length=255)

 */



protected $firstname;

 

/**

 * @var string

 *

 * @ORM\Column(name="lastname", type="string", length=255)

 */

protected $lastname;

 

/**

 * @var string

 *

 * @ORM\Column(name="facebookId", type="string", length=255)

 */

protected $facebookId;

 

 

public function serialize()

{

return serialize(array($this->facebookId, parent::serialize()));

}

 

public function unserialize($data)

{

list($this->facebookId, $parentData) = unserialize($data);

parent::unserialize($parentData);

}

 

 

 

/**

 * @return string

 */

public function getFirstname()

{

return $this->firstname;

}

 

/**

 * @param string $firstname

 */

public function setFirstname($firstname)

{

$this->firstname = $firstname;

}

 

/**

 * @return string

 */

public function getLastname()

{

return $this->lastname;

}

 

/**

 * @param string $lastname

 */

public function setLastname($lastname)

{

$this->lastname = $lastname;

}

 

/**

 * Get the full name of the user (first + last name)

 * @return string

 */

public function getFullName()

{

return $this->getFirstName() . ' ' . $this->getLastname();

}

 

/**

 * @param string $facebookId

 * @return void

 */

public function setFacebookId($facebookId)

{

$this->facebookId = $facebookId;

$this->setUsername($facebookId);

$this->salt = '';

}

 

/**

 * @return string

 */

public function getFacebookId()

{

return $this->facebookId;

}

 

/**

 * @param Array

 */

public function setFBData($fbdata)

{

if (isset($fbdata['id'])) {

$this->setFacebookId($fbdata['id']);

$this->addRole('ROLE_FACEBOOK');

}

if (isset($fbdata['first_name'])) {

$this->setFirstname($fbdata['first_name']);

}

if (isset($fbdata['last_name'])) {

$this->setLastname($fbdata['last_name']);

}

if (isset($fbdata['email'])) {

$this->setEmail($fbdata['email']);

}

}

}

 

Looking forward for an answer. J

 

Regards

 

Grzegorz Floryański

WWW. www.apartamenty-florian.pl

Tel. 503-052-210 

Mail. grzeg...@apartamenty-florian.pl

 

-- 
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] Using ZendAMF with Symfony2

2011-12-21 Thread GaB

Hi Nick, do you mind sharing your findings about amf?

thanks

On 15/03/2011 3:44, Nick Jennings wrote:

Hi All,

  I've been digging into Symfony2 and really love what I've learned so
far. I will be needing a complete AMF3 solution, and have been
planning on using ZendAMF since before I started developing with
Symfony2. I'm wondering if there is any recommended method for using
this 3rd party library with Sf2?

  Should I just include it in my controllers and use it as the
documentation describes, or should I create a wrapper bundle and use
it like that? (i'm not sure how to do that yet, but just wondering if
that's the direction I should be going).

Any advice or suggestions welcome.
Thanks in advance
-Nick



--
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] Error - Form Job - day 3

2011-12-21 Thread Emmanuel Allende
Hi!
I'm having a problem. I can't see the form (in the Jobeet tutorial, day 3) 
with any style. Why is this? any solution? Thanks!


(Sorry about my english...)

-


Hola! 
Estoy teniendo problemas para visualizar correctamente el form generado en 
el dia 3 del tutorial de jobeet. Me lo muestra con los datos correctamente, 
pero sin ningun estilo. Porque puede ser?
Gracias!


-- 
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: [Sf2+MongoDB] predefine key for EmbedMany

2011-12-21 Thread tecbot
Look at this pull request: https://github.com/doctrine/mongodb-odm/pull/194
It was merged yesterday, but the pull requests brokes the remove operation 
of embedded documents.
Please wait

-- 
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] KNP and Admin generator error

2011-12-21 Thread Grzegorz Floryanski
Hi,

 

I am using AdminGeneratorBundle with KNP Menu and after installing all the
bundles and login to the administration panel I have such an error:


Fatal error: Call to undefined method
Doctrine\ORM\Query\AST\PathExpression::isSimpleArithmeticExpression() in
/home/platne/sgnx/public_html/vendor/doctrine/lib/Doctrine/ORM/Query/SqlWalk
er.php on line 2018

 

Looking forward for Your reply.

 

Regards

Grzegorz

-- 
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 Form as a Standalone component

2011-12-21 Thread Hari K T
Hi Guys , 

I downloaded the Symfony2 Form components .
I was looking how to create the form object .
Is it the FormFactory , FormBuilder or anything else ?

I looked the book 

http://symfony.com/doc/current/book/forms.html#book-form-creating-form-classes

But its mainly on the Symfony controller . 

I guess I want to pass the Event Dispatcher Object , Validator Object etc 
to the Form object when creation 

But I am not sure where the entry point to the form is ..

Wondering , so if someone can show me the right path , it may help me to go 
easily .

Thanks

-- 
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] How to display an app on the backend and frontend

2011-11-30 Thread Matt Farmer
It sounds like you might be confusing some of the terminology symfony uses.  
'backend' and 'frontend' are names that are typically given to applications, so 
displaying and 'app' on both backend and fronted doesn't really makes sense 
(since they themselves are apps).

--
Matt Farmer

On Wednesday, November 30, 2011 at 12:02 PM, Dave wrote: 
> Hello.
> I wonder how I can display an app on the backend and frontend
> Thanks...
> -- 
> 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+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] Could not open input file

2011-11-30 Thread Carlos Eduardo Gómez Canelón
mmm, does your file has proper permissions?

2011/11/26 Phil Dobbin 

> Hi.
>
> I've installed Symfony 1.4.15 via subversion into lib/vendor & when I run:
>
> `$ php lib/vendor/symfony/data/bin/symfony generate:project FOO_BAR`
>
> it returns:
>
> `Could not open input file: lib/vendor/symfony/data/bin/symfony`
>
> I've installed Symfony before (via tar.gz) & never had this problem so I'm
> at a loss as what to do.
>
> Cheers,
>
>Phil...
> --
> Nothing to see here... move along, move along
>
> --
> 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] Could not open input file

2011-11-30 Thread Matt Farmer
This looks like the error php gives when it can not locate a file.  I would 
make sure you are running the command in the correct directory and that when 
you do a `ls -al` your current user has read permissions on that file.

--
Matt Farmer



On Saturday, November 26, 2011 at 6:40 AM, Phil Dobbin wrote:

> Hi.
> 
> I've installed Symfony 1.4.15 via subversion into lib/vendor & when I run:
> 
> `$ php lib/vendor/symfony/data/bin/symfony generate:project FOO_BAR`
> 
> it returns:
> 
> `Could not open input file: lib/vendor/symfony/data/bin/symfony`
> 
> I've installed Symfony before (via tar.gz) & never had this problem so I'm
> at a loss as what to do.
> 
> Cheers,
> 
> Phil...
> -- 
> Nothing to see here... move along, move along
> 
> -- 
> 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+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] How to display an app on the backend and frontend

2011-11-30 Thread Dave
Hello.
I wonder how I can display an app on the backend and frontend
Thanks...

-- 
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] Could not open input file

2011-11-30 Thread Phil Dobbin
Hi.

I've installed Symfony 1.4.15 via subversion into lib/vendor & when I run:

`$ php lib/vendor/symfony/data/bin/symfony generate:project FOO_BAR`

it returns:

`Could not open input file: lib/vendor/symfony/data/bin/symfony`

I've installed Symfony before (via tar.gz) & never had this problem so I'm
at a loss as what to do.

Cheers,

Phil...
-- 
Nothing to see here... move along, move along

-- 
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: [symfony-es] Hola, necesito que pases esto

2011-11-30 Thread Luis Angel Pérez Calaña
El 16/11/11, se bardo  escribió:
>>   
>>
>>   
>>
>>   
>>
>> Maria Jose Fernandez-Pacheco Gallego   
>>
>> Subdirectora de Enfermería   
>>
>> *HOSPITAL GENERAL de CIUDAD REAL *  
>>
>> Teléfono:  926 278202  926 278202 ext. 79201 fax. 926 278503   
>>
>> email: mjfernand...@sescam.jccm.es   
>>
>>  
>>
>> *Lo único que hay que hacer es reenviarlo, son dos minutos nada más **(NO
>> SE PIDE DINERO)... GRACIAS *
>>
>>
>>
>>
>>
>> Vean las fotos de María Claudia que no esta mirando los bolsillos ni esta
>> pidiendo dinero sino otra cosa que nosotros si podemos tener.
>>
>>
>>
>>
>>
>>
>> Este correo tiene como finalidad que llegue a manos de quien pueda conocer
>> sobre esta enfermedad y nos puedan colaborar.
>>
>> HOLA SOY MARIA CLAUDIA:
>>
>> NO PIDO DINERO. NO <http://dinero.no/>MIRES SOLO MIS OJOS, MIRA TAMBIEN
>> MI CORAZON, QUE TE DICE QUE TE NECESITO PARA VIVIR.
>>
>>
>> TENGO UNA ENFERMEDAD QUE SUS INICIALES SON "FOP" (Fibrodisplasia
>> Osificante Progresiva)  Y . *NECESITO ENCONTRAR TRES FAMILIAS QUE TENGAN
>> ESTA ENFERMEDAD *, PARA QUE SE COMPLETE UNA CADENA DE 10 FAMILIAS Y
>> PUEDAN ENCONTRAR LOS GENES QUE ORIGINAN ESTA ENFERMEDAD Y ASI  PODER
>> ENCONTRAR SOLUCION A MI ENFERMEDAD.
>>
>>
>> NO TE ABURRAS EN LEER ESTAS LINEAS Y ,SI PUEDES AYUDAME, YO TAL VEZ NO TE
>> PUEDA CONOCER NUNCA, PERO DIOS QUE ES GRANDE Y DIVINO TE BENDECIRA. CON
>> CARIÑO.
>>
>> MARIA CLAUDIA 
>>
>>  
>>
>>
>>
>
> --
> Has recibido este mensaje porque estás suscrito al grupo "symfony-es" de
> Grupos de Google.
> Para publicar una entrada en este grupo, envía un correo electrónico a
> symfony...@googlegroups.com.
> Para anular tu suscripción a este grupo, envía un correo electrónico a
> symfony-es+unsubscr...@googlegroups.com
> Para tener acceso a más opciones, visita el grupo en
> http://groups.google.com/group/symfony-es?hl=es.
>
>

-- 
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] What is the best way to handle URLs in javascript files called by assetic

2011-11-30 Thread Jared McAteer
The solution I've resorted to, which I feel is less hacky than including 
hidden inputs or anchors is including a global variable that includes the 
paths I need on in the particular template.

e.g., in my index.html.twig:

{%extends '::base.html.twig' %}

{% javascripts
'@MyBundle/Resources/public/js/myjs.js'
%}

{% endjavascripts %}

var JSON_URLS = {
getServerStatus: '{{ path("MyBundle_GetStatus") }}', // on dev = 
/app_dev.php/getStatus on live = /getStatus
foo: '{{ path("_foo") }}',
bar: '{{ path("_bar") }}'
};


Then in myjs.js you would have some code like:

$.get(window.JSON_URLS.getServerStatus, function() {...});

-- 
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] Digital Certificate Login

2011-10-04 Thread Nelson Teixeira
Hello,

Anyone knows how i can do Digital Certificate login with Symfony ? I mean
with an A3 Token.

Nelson Teixeira

-- 
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] Is it possible to generate forms using doctrine, without knowing what might be in the model?

2011-10-04 Thread Steve Adams
I'll do my best to explain this briefly. I'd like to be able to 
automatically generate forms based on the model without actually preparing 
classes for those forms. For example:

I have about 75 advertisers, which have custom, unique form fields for data 
submission. Whatever is in those fields can't matter, because I don't want 
to write classes for each advertiser. I want to write one single class to 
handle all 75 of them.

To illustrate, advertiserX may need to know the hair_colour, height, age, 
and sex of the user. AdvertiserY may need to know the name, email_address, 
phone_number, and weight. Who knows what, really; what counts is that the 
required data is different and could be considered arbitrary for all we 
care.

Is it possible to have doctrine gather data about these forms and provide 
Symfony 1.4 with instructions to build a form on the fly? In my model I have 
information such as field types, names, default values if applicable, 
dependencies, etc. I have enough information to derive validator 
information, widget types, labels...

The only issue is that I am really not clear on the way in which I'd 
accomplish this. Any input would be greatly appreciated!

Thank you for reading.

-- 
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] Missing mandatory parameter '_locale'

2011-10-04 Thread Alessandro Desantis
Hi guys. I'm trying to prefix all my routes with /{_locale}. So, I've moved 
them in routing_actual.yml and I've written the following in my *routing.yml
*:

_main:
resource: routing_actual.yml
prefix:   /{_locale}
requirements:
_locale: en|it
defaults:
_locale: en

However, when I try to handle errors overriding *TwigBundle* (visiting, for 
example, */en/foo*) I get a blank page and the following message is 
contained in prod.log:

Exception thrown when handling an exception (Twig_Error_Runtime: An exception 
has been thrown during the rendering of a template ("The "subscription_new" 
route has some missing mandatory parameters ("_locale").") in 
"ShaukuComingSoonBundle::base.html.twig" at line 13.)

What might be causing the problem?

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


[symfony-users] IMPORTANT: Getting help on symfony1 or Symfony2

2011-06-23 Thread Fabien Potencier
After an opinionated discussion 
(http://groups.google.com/group/symfony-users/browse_thread/thread/ca3d1cd6662ca1d6/1372435731045ea0), 
I've decided to create two new mailing-lists that are

*replacing* the current one:

 * symfony1: http://groups.google.com/group/symfony1
 * Symfony2: http://groups.google.com/group/Symfony2

This mailing-list has been switched to the archive mode; all messages 
will remain browseable and searchable but new messages will be rejected. 
So, subscribe to at least one of the new mailing-lists.


More information here:

http://symfony.com/blog/getting-help-on-symfony1-or-symfony2

Fabien

--
Fabien Potencier
Sensio CEO - Symfony lead developer
sensiolabs.com | symfony.com | fabien.potencier.org
Tél: +33 1 40 99 80 80

--
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: Jobeet Day 5 - Problem with Homepage

2011-06-23 Thread Roy Raider
If that can help when I remove "_slug" in rooting.yml all work. (but i
hadn't anymore slugify URL for jobs)


PS: I hadn't repository cause I didn't succeed to did it, but I will
post my code in 3~4hours, I cant now.

-- 
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: Exception throw UsernamePasswordToken

2011-06-23 Thread Christophe COEVOET

Le 23/06/2011 10:22, François CONSTANT a écrit :

Hi,

the current user can't be serialized apparently.

Changing private $usuario; to protected $usuario should solve that
issue. It must be done on related entities as well.

On Jun 23, 5:45 pm, Michel Salib  wrote:

Most of the time this error appear because of a bad initialization of your
object.

It looks like you do not have any constructor, so you don't seem to
initialize any collection which you should do if you have some. What is your
orm mapping ?
Proxies are not serializables when you use private properties, and can 
eventually cause issues in other cases. The good way to go is to 
implement the Serializable interface to control the way they are serialized.


--
Christophe | Stof

--
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: Exception throw UsernamePasswordToken

2011-06-23 Thread François CONSTANT
Hi,

the current user can't be serialized apparently.

Changing private $usuario; to protected $usuario should solve that
issue. It must be done on related entities as well.

On Jun 23, 5:45 pm, Michel Salib  wrote:
> Most of the time this error appear because of a bad initialization of your
> object.
>
> It looks like you do not have any constructor, so you don't seem to
> initialize any collection which you should do if you have some. What is your
> orm mapping ?

-- 
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 change error message in repeated form???

2011-06-23 Thread François CONSTANT
Hi,

so if it's similar to the following XML, what's the getter property to
edit then for a repeated field?




The token is invalid




Thanks,

On May 16, 11:55 pm, Dennis Jacobfeuerborn 
wrote:
> This might 
> help:http://symfony.com/doc/current/book/validation.html#constraint-config...

-- 
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: symfony 1.4 - renderComponent() and ajax problem

2011-06-23 Thread Imran
Hi there,

Just replace the line:

return $this->renderComponent("product_comment", "showComment",
array('comment' => $product_comment, 'class' => "hidden"));

with:

$text =  $this->getComponent("product_comment", "showComment",
array('comment' => $product_comment, 'class' => "hidden"));


return $this->renderText($text);


Cheers!

-Imran


On Jun 23, 12:15 am, vviippola  wrote:
> Hi ppl,
>
> I'm going crazy with this issue, probably something trivial I'm not
> able to figure out.
>
> I have a component which works fine when included on template using
> include_component()
>
> However, when I do this for ajax calls I'm getting an error.
>
> if ($request->isXmlHttpRequest())
> {
>     return $this->renderComponent("product_comment", "showComment",
> array('comment' => $product_comment, 'class' => "hidden"));
>
> }
>
> error_log: The template "Success.php" does not exist or is unreadable
> in ""
>
> Serious debugging has taken place, but I'm just not able to figure
> this out...

-- 
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: About cache:clear command

2011-06-23 Thread Christophe COEVOET

Le 23/06/2011 09:40, Ozzy a écrit :

Thanks for the answer, it is now clear that why I get errors in the
application since I only cleared the dev cache using the command.

I also want to ask what does warming the cache up do?

It creates the cache instead of relying on the first request to do it.
Note that warming up the cache is needed in prod at least to generate 
Doctrine proxies as using /auto_generate_proxies/ is really bad for 
performances (it regenerate them for each request, even if there is no 
needed change)


--
Christophe | Stof

--
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: Exception throw UsernamePasswordToken

2011-06-23 Thread Michel Salib
Most of the time this error appear because of a bad initialization of your 
object.

It looks like you do not have any constructor, so you don't seem to 
initialize any collection which you should do if you have some. What is your 
orm mapping ?

-- 
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: About cache:clear command

2011-06-23 Thread Ozzy
Thanks for the answer, it is now clear that why I get errors in the
application since I only cleared the dev cache using the command.

I also want to ask what does warming the cache up do?

On Jun 23, 12:51 am, Christophe COEVOET  wrote:
> Le 22/06/2011 22:59, Ozzy a �crit :> Hi,
>
> > I wonder what is the difference between "app/console cache:clear" and
> > "rm -rf app/cache/*" commands. When I use the first one, I sometimes
> > get errors in the web application, so I use the second one. But, what
> > is the exact difference?
>
> > Thanks.
>
> The first one only removes the cache for the current environment (the
> console runs in dev by default and this can be changed using the /--env/
> option).
> The second difference is that the first command also warmps up the cache
> after clearing it.
>
> --
> Christophe | Stof

-- 
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] Form and $attributes

2011-06-23 Thread Grégoire
Hi,

I'd really like writing somthing like:

foreach ($form as $name=>$field) {
  if ($field->hasErrors())
$field->setAttribute("attr", array("class" => "error"));
}

But I can't because setAttribute is not implemented in the *
Symfony\Component\Form\Form* class (and $attributes is private).

   1. Why there is no such setter since this can be useful if we know what 
   we are doing ?
   2. If this issue involve design concerns explaining why there is no 
   setter, how can I do what I want ? (i.e setting "error" class on field that 
   has errors)


Regards

-- 
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] Name conflicts in Twig blocks

2011-06-23 Thread Christophe COEVOET

Le 23/06/2011 03:18, Kevin a écrit :

Hey all,
I'm integrating the FOS UserBundle (many thanks to the bundle 
developers, btw) into an application, and I'm trying to find the 
cleanest way to integrate the bundle templates stylistically.


We have a base template that looks something like:

{# MyBundle::base.html.twig #}
...
{% block body %}
...

{% block content %}
{% endblock %}

{% endblock %}
...

For most of the user bundle templates, the default content is fine for 
our purposes, so my first thought would just be to override 
FOSUserBundle::layout.html.twig (which all the user bundle templates 
extend from) with something extending our base template.  However, I'd 
like the final result to look something like:


{# Overrides FOSUserBundle::layout.html.twig #}
{% extends 'MyBundle::base.html.twig %}
{% block content %}

{# 'content' block from user bundle templates goes here! #}

{% endblock %}

So the issue is that our base template already has a 'content' block 
that's serving a different purpose than the 'content' block in the 
user bundle templates.


Naturally we could override all the lower-level user bundle templates 
we're using, and just modify their 'content' blocks directly.  We 
could also rename the 'content' block of our base template and update 
our other templates which inherit from it.  Neither of these options 
would be terribly difficult, but I'm wondering if there's a cleaner 
way to do it.  I'm almost imagining something like:


{# Overrides FOSUserBundle::layout.html.twig #}
{% extends 'MyBundle::base.html.twig with { 'content': 'base_content' } %}
{% block base_content %}

{% block content %}
{% endblock %}

{% endblock %}

Anyone know if something like this is feasible, or if there's a better 
way to be handling this situation?


Thanks!
Kevin

You can also overwrite the bundle's template called by the controller. 
If you look at the bundle, we use 2 templates each time: one responsible 
of the actual rendering of the content (the name is suffixed by 
/_content/) and another one called by the controller and doing the 
inheritance to the layout, which calls the first one. This allows you to 
replace it if the name /content/ does not fit in your own layout.


--
Christophe | Stof

--
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 1.4 - renderComponent() and ajax problem

2011-06-22 Thread vviippola
Hi ppl,

I'm going crazy with this issue, probably something trivial I'm not
able to figure out.

I have a component which works fine when included on template using
include_component()

However, when I do this for ajax calls I'm getting an error.

if ($request->isXmlHttpRequest())
{
return $this->renderComponent("product_comment", "showComment",
array('comment' => $product_comment, 'class' => "hidden"));
}

error_log: The template "Success.php" does not exist or is unreadable
in ""

Serious debugging has taken place, but I'm just not able to figure
this out...

-- 
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: Security - UserProvider with Web Service - Get the password

2011-06-22 Thread Arturo Sevilla
Hi,

loadUserByUsername() is not used to check the password. The password is 
checked once you get the user in memory by comparing the hashes (or 
plaintext if no encoder is used).

You will need to implement the web service so you could return the user by 
its username, and configure Symfony so that it checks the password with the 
correct hashing algorithm that is stored in the user object.

Think of loadUserByUsername() as if you were executing a SELECT * FROM User 
WHERE username = $username, and then you check that the hashes coincide 
through PHP.

-- 
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] Stof : MappingException

2011-06-22 Thread Benoît Bergstörm
Hi Christophe,

i'm moving forward :)

i'm trying to set my Area::$name property translatable.
i added gedmo annotations to my class directly (see below). i use the Sonata
AdminBundle to edit my 'Area' object.
and the default saving still use the table 'name' field and not the
'ext_translation' table.

shall i surcharge the saving method in the admin ? do you have any idea ?

cheers

Benoît

--


> namespace Mr\StartBundle\Entity;
>
> use Doctrine\ORM\Mapping as ORM;
>
> use Gedmo\Mapping\Annotation as GEDMO;
> use Gedmo\Translatable\Translatable;
>
> /**
>  * Mr\StartBundle\Entity\MrArea
>  *
>  * @ORM\Table(name="mr_area")
>  * @ORM\Entity
>  */
> class MrArea implements Translatable
> {
>
> /**
>  * @var integer $id
>  */
> private $id;
>
> /**
>  * @var string $name
>  *
>  * @GEDMO\Translatable
>  */
> private $name;
>
> /**
>  * Used locale to override Translation listener`s locale
>  * this is not a mapped field of entity metadata, just a simple
> property
>  *
>  * @GEDMO\Locale
>  */
> private $locale;
>
> public function setTranslatableLocale($locale)
> {
> $this->locale = $locale;
> }
>
> ...
>
> }
>


2011/6/20 Christophe COEVOET 

> Le 17/06/2011 22:29, mrdev a écrit :
>
>> Hi there,
>>
>> since i decided to use the translatable feature of the Stof
>> \DoctrineExtensionsBundle i get this error
>>
>>   [Doctrine\ORM\Mapping
>> \MappingException]
>>   No identifier/primary key specified for Entity 'Stof
>> \DoctrineExtensionsBundle\**Entity\LogEntry'. Every Entity must have an
>> identifier/primary key.
>>
>> i tried everything i found on the web, playing with annotations and
>> the LogEntry class has protected id property inherited from
>> AbstractLogEntry (no private property)...
>>
>> i'm stuck.
>>
>> any help ?
>>
>> thanks
>>
>> Benoît
>>
>>  This is a bug with the Doctrine EntityGenerator which has some issues
> with inheritance. The workaround is to disable the mapping of the bundle
> when you want to use the CLI command to generate your entities (disabling it
> is documented in the bundle doc) and to activate it again after running the
> command.
>
> --
> Christophe | Stof
>
> --
> 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+unsubscribe@**googlegroups.com
> For more options, visit this group at
> http://groups.google.com/**group/symfony-users?hl=en<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: [SF2] WebTestCase - Simulate AJAX Request

2011-06-22 Thread Arturo Sevilla
You would need to set the HTTP Header X-Requested-With to XmlHttpRequest

http://stackoverflow.com/questions/3124636/detect-ajax-calling-url

-- 
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] Name conflicts in Twig blocks

2011-06-22 Thread Kevin
Hey all,
I'm integrating the FOS UserBundle (many thanks to the bundle developers, 
btw) into an application, and I'm trying to find the cleanest way to 
integrate the bundle templates stylistically.

We have a base template that looks something like:

{# MyBundle::base.html.twig #}
...
{% block body %}
...

{% block content %}
{% endblock %}

{% endblock %}
...

For most of the user bundle templates, the default content is fine for our 
purposes, so my first thought would just be to override 
FOSUserBundle::layout.html.twig (which all the user bundle templates extend 
from) with something extending our base template.  However, I'd like the 
final result to look something like:

{# Overrides FOSUserBundle::layout.html.twig #}
{% extends 'MyBundle::base.html.twig %}
{% block content %}

{# 'content' block from user bundle templates goes here! #}

{% endblock %}

So the issue is that our base template already has a 'content' block that's 
serving a different purpose than the 'content' block in the user bundle 
templates.

Naturally we could override all the lower-level user bundle templates we're 
using, and just modify their 'content' blocks directly.  We could also 
rename the 'content' block of our base template and update our other 
templates which inherit from it.  Neither of these options would be terribly 
difficult, but I'm wondering if there's a cleaner way to do it.  I'm almost 
imagining something like:

{# Overrides FOSUserBundle::layout.html.twig #}
{% extends 'MyBundle::base.html.twig with { 'content': 'base_content' } %}
{% block base_content %}

{% block content %}
{% endblock %}

{% endblock %}

Anyone know if something like this is feasible, or if there's a better way 
to be handling this situation?

Thanks!
Kevin

-- 
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] Is there anyone working on a bundle for backup - restore databases?

2011-06-22 Thread Gustavo Adrian
For now it's a very simple bundle with a couple of classes that handles the
call to the db vendor's utility that corresponds to the connection you use
(for now only MySQL), using the connection's parameters. It has console
commands too that uses those classes. You can simply run the backup with
something like:

$factory = $container->get('backup_restore.factory');
$backupInstance =
$factory->getBackupInstance('my_mysql_connection_service_id');   // This
gets a Backup instance for the db platform of the connection. In this case,
MySQL

$pathToGeneratedSqlFile = $backupInstance->backupDatabase('/target/dir',
'optional_file_name.sql');

I was working on this for my app, but I decided to create a more generic
bundle in case anyone is interested in using it (or extend it). Sadly, it
hasn't a GUI because I needed only the classes that handle the work and some
commands to run them. I'll upload it tomorrow to github.

I didn't found a better way to handle backup / restore functionalities
within PHP than executing the DB vendor's utilities (such as "mysqldump").
If anyone has a better way for backup / restore handling, please let me
know.



Thanks!

2011/6/22 oscar balladares 

> +1 It would a very nice utility. I'm pretty sure it will catch community
> attention.
>
> Does It will be like the admin bundle? with a GUI for such task? Does it
> would have a command-line utility?
>
> Regards!
>
> 2011/6/22 Gustavo Adrian 
>
>> Hi everyone,
>>
>> As far as I know, the best way to backup/restore a database is using the
>> utility each db vendor provides for such a task. That's why I've started to
>> work today in a bundle that provides a way to execute these utilities within
>> symfony's environment. I had it working some time ago, but only for MySQL.
>> Now I want to create a bundle with the possibility of adding the needed
>> classes to handle other vendor's utilities. It's a simple bundle with some
>> classes responsibles of doing the backup / restore using the information of
>> some Doctrine's connection. It provides Commands for backup and restore too.
>> For now I'll only implement classes to handle MySQL's "mysqldump". I need
>> support for MongoDB too, but I still don't know much about how to do a
>> backup / restore with this db so I'll have to read a little bit about it
>> first.
>>
>> I guess I'll be uploading this bundle tomorrow at work, but in the
>> meantime I'd like to know if anyone is working on something like this. If
>> not, any comments about this topic will be very appreciated.
>>
>>
>>
>> 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
>

-- 
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] Is there anyone working on a bundle for backup - restore databases?

2011-06-22 Thread oscar balladares
+1 It would a very nice utility. I'm pretty sure it will catch community
attention.

Does It will be like the admin bundle? with a GUI for such task? Does it
would have a command-line utility?

Regards!

2011/6/22 Gustavo Adrian 

> Hi everyone,
>
> As far as I know, the best way to backup/restore a database is using the
> utility each db vendor provides for such a task. That's why I've started to
> work today in a bundle that provides a way to execute these utilities within
> symfony's environment. I had it working some time ago, but only for MySQL.
> Now I want to create a bundle with the possibility of adding the needed
> classes to handle other vendor's utilities. It's a simple bundle with some
> classes responsibles of doing the backup / restore using the information of
> some Doctrine's connection. It provides Commands for backup and restore too.
> For now I'll only implement classes to handle MySQL's "mysqldump". I need
> support for MongoDB too, but I still don't know much about how to do a
> backup / restore with this db so I'll have to read a little bit about it
> first.
>
> I guess I'll be uploading this bundle tomorrow at work, but in the meantime
> I'd like to know if anyone is working on something like this. If not, any
> comments about this topic will be very appreciated.
>
>
>
> 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


[symfony-users] [Symfony 2] Is there anyone working on a bundle for backup - restore databases?

2011-06-22 Thread Gustavo Adrian
Hi everyone,

As far as I know, the best way to backup/restore a database is using the
utility each db vendor provides for such a task. That's why I've started to
work today in a bundle that provides a way to execute these utilities within
symfony's environment. I had it working some time ago, but only for MySQL.
Now I want to create a bundle with the possibility of adding the needed
classes to handle other vendor's utilities. It's a simple bundle with some
classes responsibles of doing the backup / restore using the information of
some Doctrine's connection. It provides Commands for backup and restore too.
For now I'll only implement classes to handle MySQL's "mysqldump". I need
support for MongoDB too, but I still don't know much about how to do a
backup / restore with this db so I'll have to read a little bit about it
first.

I guess I'll be uploading this bundle tomorrow at work, but in the meantime
I'd like to know if anyone is working on something like this. If not, any
comments about this topic will be very appreciated.



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] About cache:clear command

2011-06-22 Thread Christophe COEVOET

Le 22/06/2011 22:59, Ozzy a écrit :

Hi,

I wonder what is the difference between "app/console cache:clear" and
"rm -rf app/cache/*" commands. When I use the first one, I sometimes
get errors in the web application, so I use the second one. But, what
is the exact difference?

Thanks.

The first one only removes the cache for the current environment (the 
console runs in dev by default and this can be changed using the /--env/ 
option).
The second difference is that the first command also warmps up the cache 
after clearing it.


--
Christophe | Stof

--
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] About cache:clear command

2011-06-22 Thread Ozzy
Hi,

I wonder what is the difference between "app/console cache:clear" and
"rm -rf app/cache/*" commands. When I use the first one, I sometimes
get errors in the web application, so I use the second one. But, what
is the exact difference?

Thanks.

-- 
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: Security - UserProvider with Web Service - Get the password

2011-06-22 Thread Filipe La Ruina
I got the same problem.
I have to curl an service passing username and password. It will return me a 
cookie corresponding to the user "session".
Any thoughts on how to do that?

-- 
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 Doctrine: Generateing realtions from annotaion

2011-06-22 Thread Kein
I forget how, but i solve problem after many attemps.

-- 
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] [s2][doctrine2] Update LifeCycleCallBack event not working [beta5]

2011-06-22 Thread Marco Pivetta
You should use Doctrine 2 Event listeners if you need access to the
EntityManager. Usage of the EntityManager within entities themselves is
STRONGLY discouraged, especially within Life-cycle Callbacks.
Marco Pivetta
http://twitter.com/Ocramius
http://marco-pivetta.com



On 22 June 2011 18:32, oscar balladares  wrote:

> I Marcelo. I have not tried to use the EM, but as far as I know, it is not
> available in the Entity's scope, I will try to find out if this is correct,
> because I'm interested in atomic queries.
>
> Regards!
>
>
> 2011/6/22 Marcelo Prizmic 
>
>> Oscar
>>
>> Thanks for the example!!
>>
>> Did you use entity manager in the uploadFile()?
>>
>> In my case I would need to make some queries inside the "preEvent"
>> function. Do you know how?
>>
>> Marcelo
>>
>>
>> 2011/6/21 oscar balladares 
>>
>>> Hi Marcelo; yes, of course:
>>>
>>> I'm currently using YML config instead of Annotations. I do really love
>>> to separate metadata from Entities classes.
>>>
>>> You have to tell doctrine to enable LifeCycleCallback event like this:
>>>
>>> Oscar\HotelBundle\Entity\Foto:
>>> type:  entity
>>> table:  foto
>>> repositoryClass: Oscar\HotelBundle\Repo\FotoRepo
>>> id:
>>> id:
>>> type:  integer
>>> generator:
>>> strategy:  AUTO
>>> fields:
>>> titulo:
>>> type:  string
>>> length: 100
>>>  notnull: false
>>>
>>> *lifecycleCallbacks:*
>>> *postPersist: [ uploadFile ]*
>>>
>>>
>>> So you should have an uploadFile() method defined in the entity's class.
>>>
>>> When you call $em->flush() Doctrine will look for events prior or post
>>> flushing. (prePersist, postPersist, preUpdate, postUpdate, preRemove,
>>> postRemove)
>>>
>>> Class Foto
>>> {
>>> //private properties
>>>
>>> //public getters and setters
>>>
>>> public function uploadFile()
>>> {
>>>   //this is invoked after this entity is persisted.
>>> }
>>>
>>> }
>>>
>>> In my case, every event is invoked properly, but preUpdate nor
>>> postUpdate; If I would have misstyped prePersist: [ uploadFil*
>>> eIMisstypedThis* ]
>>> the framework will thrown an exception telling me that such method
>>> doesn't exist in the entity class; if I do the same for preUpdate, or
>>> postUpdate,
>>> it will be ignored, like it doesn't check the method.
>>>
>>> Regards!
>>>
>>> 2011/6/20 Marcelo Prizmic 
>>>
>>>> Hi Oscar
>>>> Could you post some code about how to use per or post events?
>>>> Thanks
>>>> Marcelo
>>>>
>>>>
>>>> 2011/6/20 oscar balladares 
>>>>
>>>>> Hi everybody!.
>>>>>
>>>>> I'm using Yaml configuration for doctrine metadata.
>>>>>
>>>>> All others events (prePersist, postPersist, preRemove, postRemove) are
>>>>> working properly, but not the preUpdate and PostUpdate.
>>>>>
>>>>> Of course, I'm just calling the 'persist' method of the $EntityManager:
>>>>>
>>>>> $em->persist($AlreadyInDatabaseEntityInstance);
>>>>> $em->flush();
>>>>>
>>>>> The row in the database is updated actually, but the method is never
>>>>> called.
>>>>>
>>>>> the easiest way to prove myself I'm not crazy, is that if the method
>>>>> name that has been set in the metadata is not correct,
>>>>> then when the Event is called, an exception will be thrown, i.e:
>>>>>
>>>>> preRemove: [ preRemoveMethod ]
>>>>>
>>>>> then I: $em->remove($entity)
>>>>>
>>>>> If the preRemoveMethod doesn't exist in the Entity class, then an
>>>>> excepetion will be trhown.
>>>>> In the other hand, preUpdate/postUpdate will be ignored completely. I
>>>>> can:
>>>>>
>>>>> preUpdate: [ asdfasdfaThisMethodDoesNotExistInTheEntityClassaesrseres ]
>>>>>
>>>>> No exception will be thrown, knowing that such method doesn't exist at
>&g

Re: [symfony-users] [sf2] thinking of putting together a seed data bundle

2011-06-22 Thread Jeremiah Dodds
On Wed, Jun 22, 2011 at 11:41 AM, theinterned  wrote:

> Hi,
>
> I am looking around for a solution to load seed data into my project.
> Until now, I have been using fixtures to load the data, but of course
> this gets very dangerous when you have live, non static data on your
> production server!
>
> In the rails world, there is Seed Fu https://github.com/mbleigh/seed-fu
> and I am thinking of building out a seed data bundle for symfony along
> the same lines. (and here is a good rails-centric discussion of
> various seeding strategies and their downfalls:
> http://railspikes.com/2008/2/1/loading-seed-data)
>
> It seems to me that I could get a long way by branching off the
> doctrine fixtures bundle. I would need to get rid of the parts of it
> that are involved with dropping data and change the data loading to do
> "insert or update" rather then just insert.
>
> I'm wondering if anyone would be interested in the bundle, would be
> interested in helping out?
>
>
huge +1, i might be able to throw a pull request your way here and there,
but can't promise anything at the moment, crunchtime and all that :/

-- 
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] [s2][doctrine2] Update LifeCycleCallBack event not working [beta5]

2011-06-22 Thread oscar balladares
I Marcelo. I have not tried to use the EM, but as far as I know, it is not
available in the Entity's scope, I will try to find out if this is correct,
because I'm interested in atomic queries.

Regards!

2011/6/22 Marcelo Prizmic 

> Oscar
>
> Thanks for the example!!
>
> Did you use entity manager in the uploadFile()?
>
> In my case I would need to make some queries inside the "preEvent"
> function. Do you know how?
>
> Marcelo
>
>
> 2011/6/21 oscar balladares 
>
>> Hi Marcelo; yes, of course:
>>
>> I'm currently using YML config instead of Annotations. I do really love to
>> separate metadata from Entities classes.
>>
>> You have to tell doctrine to enable LifeCycleCallback event like this:
>>
>> Oscar\HotelBundle\Entity\Foto:
>> type:  entity
>> table:  foto
>> repositoryClass: Oscar\HotelBundle\Repo\FotoRepo
>> id:
>> id:
>> type:  integer
>> generator:
>> strategy:  AUTO
>> fields:
>> titulo:
>> type:  string
>> length: 100
>>  notnull: false
>>
>> *lifecycleCallbacks:*
>> *postPersist: [ uploadFile ]*
>>
>>
>> So you should have an uploadFile() method defined in the entity's class.
>>
>> When you call $em->flush() Doctrine will look for events prior or post
>> flushing. (prePersist, postPersist, preUpdate, postUpdate, preRemove,
>> postRemove)
>>
>> Class Foto
>> {
>> //private properties
>>
>> //public getters and setters
>>
>> public function uploadFile()
>> {
>>   //this is invoked after this entity is persisted.
>> }
>>
>> }
>>
>> In my case, every event is invoked properly, but preUpdate nor postUpdate;
>> If I would have misstyped prePersist: [ uploadFil*eIMisstypedThis* ]
>> the framework will thrown an exception telling me that such method doesn't
>> exist in the entity class; if I do the same for preUpdate, or postUpdate,
>> it will be ignored, like it doesn't check the method.
>>
>> Regards!
>>
>> 2011/6/20 Marcelo Prizmic 
>>
>>> Hi Oscar
>>> Could you post some code about how to use per or post events?
>>> Thanks
>>> Marcelo
>>>
>>>
>>> 2011/6/20 oscar balladares 
>>>
>>>> Hi everybody!.
>>>>
>>>> I'm using Yaml configuration for doctrine metadata.
>>>>
>>>> All others events (prePersist, postPersist, preRemove, postRemove) are
>>>> working properly, but not the preUpdate and PostUpdate.
>>>>
>>>> Of course, I'm just calling the 'persist' method of the $EntityManager:
>>>>
>>>> $em->persist($AlreadyInDatabaseEntityInstance);
>>>> $em->flush();
>>>>
>>>> The row in the database is updated actually, but the method is never
>>>> called.
>>>>
>>>> the easiest way to prove myself I'm not crazy, is that if the method
>>>> name that has been set in the metadata is not correct,
>>>> then when the Event is called, an exception will be thrown, i.e:
>>>>
>>>> preRemove: [ preRemoveMethod ]
>>>>
>>>> then I: $em->remove($entity)
>>>>
>>>> If the preRemoveMethod doesn't exist in the Entity class, then an
>>>> excepetion will be trhown.
>>>> In the other hand, preUpdate/postUpdate will be ignored completely. I
>>>> can:
>>>>
>>>> preUpdate: [ asdfasdfaThisMethodDoesNotExistInTheEntityClassaesrseres ]
>>>>
>>>> No exception will be thrown, knowing that such method doesn't exist at
>>>> all.
>>>>
>>>> (It won't happen with any other event).
>>>>
>>>> What could be wrong?
>>>>
>>>> Regards!
>>>>
>>>> --
>>>> 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://group

Re: [symfony-users] [sf2] thinking of putting together a seed data bundle

2011-06-22 Thread oscar balladares
+1. It sounds great! Sadly, I'm very busy at the time, so I can't help right
now :(

2011/6/22 Tac Tacelosky 

> +1 for interest.  Not sure if I can contribute much to the development --
> still getting my head around bundles, src, vendors and third_party, and how
> all this will fit into svn (my code) and git (Symfony SE / Symfony /
> Vendors).  But I like the idea -- we're porting from CodeIgniter, and right
> now have a YAML file that I load to seed the initial data, mostly user login
> accounts and profiles, so they don't have to re-register every time we
> release a new test.
>
> Will you keep it on symfony2bundles?  And don't worry about dumbing-down
> the instructions, newbies like me appreciate it.  Even things like "Don't
> forget to add this to the routing" can take a while to remember how exactly
> do to.
>
> Tac
>
>
> On Wed, Jun 22, 2011 at 11:41 AM, theinterned  wrote:
>
>> Hi,
>>
>> I am looking around for a solution to load seed data into my project.
>> Until now, I have been using fixtures to load the data, but of course
>> this gets very dangerous when you have live, non static data on your
>> production server!
>>
>> In the rails world, there is Seed Fu https://github.com/mbleigh/seed-fu
>> and I am thinking of building out a seed data bundle for symfony along
>> the same lines. (and here is a good rails-centric discussion of
>> various seeding strategies and their downfalls:
>> http://railspikes.com/2008/2/1/loading-seed-data)
>>
>> It seems to me that I could get a long way by branching off the
>> doctrine fixtures bundle. I would need to get rid of the parts of it
>> that are involved with dropping data and change the data loading to do
>> "insert or update" rather then just insert.
>>
>> I'm wondering if anyone would be interested in the bundle, would be
>> interested in helping out?
>>
>> --
>> 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


Re: [symfony-users] [symfony2] What is the best way to handle URLs in javascript files called by assetic

2011-06-22 Thread oscar balladares
I meant : 'if it is not a link-for-ajax-purpose, then you can use hidden
fields'.

2011/6/22 oscar balladares 

> If you are calling another pages within  tag, but using JS (i.e
> ajax request)
> you can get the link's url:
>
>  $('#a-link').click(function(e){
> var $url = $(this).attr('href');
> $(this).preventDefault;
> //request content based on the url, with ajax.
> });
>
> If it is not a request, you could use a dirty trick: setting your urls on
> hidden fields, and reading its values with JQuery.
>
> :D
>
> Regards!
>
> 2011/6/22 Jake 
>
>> I am using assetic in a twig template to include a javascript file
>> from my bundle's public folder.
>> The problem is this JS file has URLs in it to call other pages using
>> jQuery.
>> How should i handle these URLs? I could write the URLs as absolute
>> paths - but this causes problems between the dev and prod environment,
>> and also makes the application not very portable.
>> What is the best way to do such things?
>>
>> --
>> 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: [Symfony2] [Solved] problem when using PHP Template following the "Page Creation" documentation

2011-06-22 Thread WebDevPT
Never mind, after reading the whole page i noticed that at the end there was 
another link to this topic:

*How to use PHP instead of Twig for Templates*
http://symfony.com/doc/current/cookbook/templating/PHP.html

I simply had to change my configuration file and add this

# app/config/config.ymlframework:
# ...
*templating:{ engines: ['twig', 'php'] **}*

Now my apps can use both twig and php template engines.


-- 
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] What is the best way to handle URLs in javascript files called by assetic

2011-06-22 Thread oscar balladares
If you are calling another pages within  tag, but using JS (i.e ajax
request)
you can get the link's url:

 $('#a-link').click(function(e){
var $url = $(this).attr('href');
$(this).preventDefault;
//request content based on the url, with ajax.
});

If it is not a request, you could use a dirty trick: setting your urls on
hidden fields, and reading its values with JQuery.

:D

Regards!

2011/6/22 Jake 

> I am using assetic in a twig template to include a javascript file
> from my bundle's public folder.
> The problem is this JS file has URLs in it to call other pages using
> jQuery.
> How should i handle these URLs? I could write the URLs as absolute
> paths - but this causes problems between the dev and prod environment,
> and also makes the application not very portable.
> What is the best way to do such things?
>
> --
> 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] Jobeet Day 5 - Problem with Homepage

2011-06-22 Thread oscar balladares
Do you have it on a github repository? It would be great if you do.
Not being able to see your code is a huge backdraw. I'm 99.99% that is a
problem with your code, so
we need to see it to figure out what is happening.

But, you can post all your code from day 4, and day 5 here to take a look at
it.

Regards!

2011/6/22 Roy Raider 

> Hi all,
>
> I have a problem with the end of the Day 5 on Jobeet.
>
> When I have slugify the url for jobs, all works fine but the homepage
> where i should have the list of jobs (who works before this action)
> it's now a white page with only "Paris, France" write on.
>
> I did the tutaurial twice, and I have always the same bug, someone
> could help me ? =]
>
> --
> 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: Using 3rd party libraries (eg PHPExcel) with Symfony2

2011-06-22 Thread Jérôme P .
Hi Jake,

I also have some difficulties to register properly PHPExcel
librairy :/
Would you mind sharing the code you use for the autoload and a quick
example of use?

Thanks,
Jerome

On 20 juin, 15:05, Jake  wrote:
> Thanks... i put it in the vendor folder and registered a prefix with
> the autoloader. works!

-- 
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] problem when using PHP Template following the "Page Creation" documentation

2011-06-22 Thread WebDevPT
Hi, perhaps I'm wrong but following the steps from the 
http://symfony.com/doc/current/book/page_creation.html and using the PHP 
render option leads me to no template at all with just echoed chars.

I used the twig template option using the proper render at

*// src/Acme/HelloBundle/Controller/HelloController.php*
return $this->render('AcmeHelloBundle:Hello:index.html.twig', array('name' 
=> $name));

and everything goes ok, but when i switch to this:

*// src/Acme/HelloBundle/Controller/HelloController.php*
return $this->render('AcmeHelloBundle:Hello:index.html.php', array('name' => 
$name));

I get this on the browser when opening the Hello page:
*
extend('::layout.html.php') ?> Hello escape($name) ?>!*

I followed the steps at the Page Creation documentation, I believe that this 
is just a lack of brackets or something like that, and I will look into it 
later but someone else had this issue? If this is a lack or missing brackets 
it should be corrected on the "Page Creation" documentation. I'm still 
trying to learn Symfony, but this can be a simple PHP missing char 
somewhere, and I'm still trying to figure out how all this works.

PS - Running on a WAMP environment

-- 
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 : Re: Using 3rd party libraries (eg PHPExcel) with Symfony2

2011-06-22 Thread Jérôme P .
Dear Jake,

I also have some difficulties using PHPExcel in Symfony2. Would you mind 
sharing the code you used for the autoload and a quick example of use?

Thanks,
Jerom

-- 
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] [sf2] thinking of putting together a seed data bundle

2011-06-22 Thread Tac Tacelosky
+1 for interest.  Not sure if I can contribute much to the development --
still getting my head around bundles, src, vendors and third_party, and how
all this will fit into svn (my code) and git (Symfony SE / Symfony /
Vendors).  But I like the idea -- we're porting from CodeIgniter, and right
now have a YAML file that I load to seed the initial data, mostly user login
accounts and profiles, so they don't have to re-register every time we
release a new test.

Will you keep it on symfony2bundles?  And don't worry about dumbing-down the
instructions, newbies like me appreciate it.  Even things like "Don't forget
to add this to the routing" can take a while to remember how exactly do to.

Tac

On Wed, Jun 22, 2011 at 11:41 AM, theinterned  wrote:

> Hi,
>
> I am looking around for a solution to load seed data into my project.
> Until now, I have been using fixtures to load the data, but of course
> this gets very dangerous when you have live, non static data on your
> production server!
>
> In the rails world, there is Seed Fu https://github.com/mbleigh/seed-fu
> and I am thinking of building out a seed data bundle for symfony along
> the same lines. (and here is a good rails-centric discussion of
> various seeding strategies and their downfalls:
> http://railspikes.com/2008/2/1/loading-seed-data)
>
> It seems to me that I could get a long way by branching off the
> doctrine fixtures bundle. I would need to get rid of the parts of it
> that are involved with dropping data and change the data loading to do
> "insert or update" rather then just insert.
>
> I'm wondering if anyone would be interested in the bundle, would be
> interested in helping out?
>
> --
> 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] [sf2] thinking of putting together a seed data bundle

2011-06-22 Thread theinterned
Hi,

I am looking around for a solution to load seed data into my project.
Until now, I have been using fixtures to load the data, but of course
this gets very dangerous when you have live, non static data on your
production server!

In the rails world, there is Seed Fu https://github.com/mbleigh/seed-fu
and I am thinking of building out a seed data bundle for symfony along
the same lines. (and here is a good rails-centric discussion of
various seeding strategies and their downfalls:
http://railspikes.com/2008/2/1/loading-seed-data)

It seems to me that I could get a long way by branching off the
doctrine fixtures bundle. I would need to get rid of the parts of it
that are involved with dropping data and change the data loading to do
"insert or update" rather then just insert.

I'm wondering if anyone would be interested in the bundle, would be
interested in helping out?

-- 
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] [s2][doctrine2] Update LifeCycleCallBack event not working [beta5]

2011-06-22 Thread Marcelo Prizmic
Oscar

Thanks for the example!!

Did you use entity manager in the uploadFile()?

In my case I would need to make some queries inside the "preEvent" function.
Do you know how?

Marcelo

2011/6/21 oscar balladares 

> Hi Marcelo; yes, of course:
>
> I'm currently using YML config instead of Annotations. I do really love to
> separate metadata from Entities classes.
>
> You have to tell doctrine to enable LifeCycleCallback event like this:
>
> Oscar\HotelBundle\Entity\Foto:
> type:  entity
> table:  foto
> repositoryClass: Oscar\HotelBundle\Repo\FotoRepo
> id:
> id:
> type:  integer
> generator:
> strategy:  AUTO
> fields:
> titulo:
> type:  string
> length: 100
>  notnull: false
>
> *lifecycleCallbacks:*
> *postPersist: [ uploadFile ]*
>
>
> So you should have an uploadFile() method defined in the entity's class.
>
> When you call $em->flush() Doctrine will look for events prior or post
> flushing. (prePersist, postPersist, preUpdate, postUpdate, preRemove,
> postRemove)
>
> Class Foto
> {
> //private properties
>
> //public getters and setters
>
> public function uploadFile()
> {
>   //this is invoked after this entity is persisted.
> }
>
> }
>
> In my case, every event is invoked properly, but preUpdate nor postUpdate;
> If I would have misstyped prePersist: [ uploadFil*eIMisstypedThis* ]
> the framework will thrown an exception telling me that such method doesn't
> exist in the entity class; if I do the same for preUpdate, or postUpdate,
> it will be ignored, like it doesn't check the method.
>
> Regards!
>
> 2011/6/20 Marcelo Prizmic 
>
>> Hi Oscar
>> Could you post some code about how to use per or post events?
>> Thanks
>> Marcelo
>>
>>
>> 2011/6/20 oscar balladares 
>>
>>> Hi everybody!.
>>>
>>> I'm using Yaml configuration for doctrine metadata.
>>>
>>> All others events (prePersist, postPersist, preRemove, postRemove) are
>>> working properly, but not the preUpdate and PostUpdate.
>>>
>>> Of course, I'm just calling the 'persist' method of the $EntityManager:
>>>
>>> $em->persist($AlreadyInDatabaseEntityInstance);
>>> $em->flush();
>>>
>>> The row in the database is updated actually, but the method is never
>>> called.
>>>
>>> the easiest way to prove myself I'm not crazy, is that if the method name
>>> that has been set in the metadata is not correct,
>>> then when the Event is called, an exception will be thrown, i.e:
>>>
>>> preRemove: [ preRemoveMethod ]
>>>
>>> then I: $em->remove($entity)
>>>
>>> If the preRemoveMethod doesn't exist in the Entity class, then an
>>> excepetion will be trhown.
>>> In the other hand, preUpdate/postUpdate will be ignored completely. I
>>> can:
>>>
>>> preUpdate: [ asdfasdfaThisMethodDoesNotExistInTheEntityClassaesrseres ]
>>>
>>> No exception will be thrown, knowing that such method doesn't exist at
>>> all.
>>>
>>> (It won't happen with any other event).
>>>
>>> What could be wrong?
>>>
>>> Regards!
>>>
>>> --
>>> 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
>

-- 
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: sfForkedDoctrineApplyPlugin, several profiles, inheritance, sluggable behavior

2011-06-22 Thread lucia
No, it isn't

On 22 jun, 15:13, Grzegorz Śliwiński  wrote:
> So...
> It seems about right. Is sluggable field in the table in database?
>
> On Jun 21, 6:53 pm, lucia  wrote:
>
>
>
> > Hi, thanks for your time, I have this:
>
> > //Basemyprofile1
> > $timestampable0 = new Doctrine_Template_Timestampable();
> >         $sluggable0 = new Doctrine_Template_Sluggable(array(
> >              'fields' =>
> >              array(
> >               0 => 'name',
> >              ),
> >              'unique' => true,
> >              ));
> >         $this->actAs($timestampable0);
> >         $this->actAs($sluggable0);
>
> > On 21 jun, 14:52, Grzegorz ¦liwiñski  wrote:
>
> > > hmmm... could you check your Basemyprofile1 or Basemyprofile2 classes
> > > if they include your behaviours?
>
> > > On Jun 20, 2:13 pm, lucia  wrote:
>
> > > > Hi,
> > > > I followed the readme of the plugin, the problem is that when I
> > > > rebuild model I lose behaviors,
> > > > I have this model:
> > > > myprofile1:
> > > >   inheritance:
> > > >     type: column_aggregation
> > > >     extends: sfGuardUserProfile
> > > >   actAs: { Timestampable: ~ , Sluggable:{ fields:[name], unique:
> > > > true}}
> > > >   columns:
> > > >   
> > > >   relations:
> > > >   ...
> > > > myprofile2:
> > > >   inheritance:
> > > >     type: column_aggregation
> > > >     extends: sfGuardUserProfile
> > > >   actAs: { Timestampable: ~ }
> > > >   columns:
> > > >   
> > > >   relations:
> > > >   ...
> > > > I expected field called 'slug' , but no...
> > > > Any idea? Maybe colision with inheritance? I changed the position of
> > > > inheritance but the field slug doesn't
> > > > appear..
> > > > Does anyone know how I can fix this? The sluggable behavior is very
> > > > important for myprofile1 table.
> > > > On the other hand, can I use concrete inheritance with this plugin?
> > > > Thanks a lot
> > > > PS: I'm sorry for my English- Ocultar texto de la cita -
>
> > > - Mostrar texto de la cita -- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

-- 
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: sfForkedDoctrineApplyPlugin, several profiles, inheritance, sluggable behavior

2011-06-22 Thread Grzegorz Śliwiński
So...
It seems about right. Is sluggable field in the table in database?

On Jun 21, 6:53 pm, lucia  wrote:
> Hi, thanks for your time, I have this:
>
> //Basemyprofile1
> $timestampable0 = new Doctrine_Template_Timestampable();
>         $sluggable0 = new Doctrine_Template_Sluggable(array(
>              'fields' =>
>              array(
>               0 => 'name',
>              ),
>              'unique' => true,
>              ));
>         $this->actAs($timestampable0);
>         $this->actAs($sluggable0);
>
> On 21 jun, 14:52, Grzegorz ¦liwiñski  wrote:
>
>
>
> > hmmm... could you check your Basemyprofile1 or Basemyprofile2 classes
> > if they include your behaviours?
>
> > On Jun 20, 2:13 pm, lucia  wrote:
>
> > > Hi,
> > > I followed the readme of the plugin, the problem is that when I
> > > rebuild model I lose behaviors,
> > > I have this model:
> > > myprofile1:
> > >   inheritance:
> > >     type: column_aggregation
> > >     extends: sfGuardUserProfile
> > >   actAs: { Timestampable: ~ , Sluggable:{ fields:[name], unique:
> > > true}}
> > >   columns:
> > >   
> > >   relations:
> > >   ...
> > > myprofile2:
> > >   inheritance:
> > >     type: column_aggregation
> > >     extends: sfGuardUserProfile
> > >   actAs: { Timestampable: ~ }
> > >   columns:
> > >   
> > >   relations:
> > >   ...
> > > I expected field called 'slug' , but no...
> > > Any idea? Maybe colision with inheritance? I changed the position of
> > > inheritance but the field slug doesn't
> > > appear..
> > > Does anyone know how I can fix this? The sluggable behavior is very
> > > important for myprofile1 table.
> > > On the other hand, can I use concrete inheritance with this plugin?
> > > Thanks a lot
> > > PS: I'm sorry for my English- Ocultar texto de la cita -
>
> > - Mostrar texto de la cita -

-- 
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: SF2: Missing hydrators for MongoDB

2011-06-22 Thread Adrien Mogenet
Or at least mention the generate:hydrators :)

On 22 juin, 12:12, Adrien Mogenet  wrote:
> Hi everyone,
>
> I was playing with Doctrine and MongoDB thanks to SF2, and I observed
> that a configuration line was missing in your documentation.
>
> doctrine_mongodb:
>     auto_generate_hydrator_classes: true
>
> Otherwise, lots of things won't work properly...
> Regards,

-- 
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] SF2: Missing hydrators for MongoDB

2011-06-22 Thread Adrien Mogenet
Hi everyone,

I was playing with Doctrine and MongoDB thanks to SF2, and I observed
that a configuration line was missing in your documentation.

doctrine_mongodb:
auto_generate_hydrator_classes: true

Otherwise, lots of things won't work properly...
Regards,

-- 
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] What is the best way to handle URLs in javascript files called by assetic

2011-06-22 Thread Jake
I am using assetic in a twig template to include a javascript file
from my bundle's public folder.
The problem is this JS file has URLs in it to call other pages using
jQuery.
How should i handle these URLs? I could write the URLs as absolute
paths - but this causes problems between the dev and prod environment,
and also makes the application not very portable.
What is the best way to do such things?

-- 
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 propel:build-forms fails for plugins

2011-06-22 Thread Helloise Smit
 here is an excerpt of ./symfony propel:build-forms:


helloises@helloise:~/github_mira/rainbow_code/phoenix$ ./symfony
propel:build-forms --connection=PropelPDO
>> propelgenerating form classes
>> tokens
>> /home/helloises/github_mira/rainbow_code/phoenix/lib/form/TrafficChatForumTableForm.class.php
>> tokens
>> /home/helloises/github_mira/rainbow_code/phoenix/lib/form/ContactSelectionForm.class.php
>> tokens
>> /home/helloises/github_mira/rainbow_code/phoenix/lib/form/TrafficDemuxTableForm.class.php
>> tokens
>> /home/helloises/github_mira/rainbow_code/phoenix/lib/form/transferCreditsForm.class.php
>> tokens
>> /home/helloises/github_mira/rainbow_code/phoenix/lib/form/generateSendDates.class.php
>> tokens
>> /home/helloises/github_mira/rainbow_code/phoenix/lib/form/TrafficContactTagTableForm.class.php
>> tokens
>> /home/helloises/github_mira/rainbow_code/phoenix/lib/form/TrafficSlapSourceTableForm.class.php
>> tokens
>> /home/helloises/github_mira/rainbow_code/phoenix/lib/form/TrafficNodeTableForm.class.php

how come it does not build anything in /home/helloises/github_mira/
rainbow_code/phoenix/plugins/rainbowcodePlugins/lib/form ???

please help?
thank you

-- 
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] Jobeet Day 5 - Problem with Homepage

2011-06-22 Thread Roy Raider
Hi all,

I have a problem with the end of the Day 5 on Jobeet.

When I have slugify the url for jobs, all works fine but the homepage
where i should have the list of jobs (who works before this action)
it's now a white page with only "Paris, France" write on.

I did the tutaurial twice, and I have always the same bug, someone
could help me ? =]

-- 
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] Theming embedded form

2011-06-22 Thread Grégoire
Hi,

I'm currently working with addresses which are frequently reused through my 
application. That's why I would like to reuse the piece of forms that can 
render the Address related fields, so I decided to embed the AddressType 
form in other forms. Now I would like to customize theming for the Adress 
form (and sub-forms), is there a way to attach a template to a Form so it 
could be reused for theming each type it is embedded ? (So the render of the 
"Adress" part of the user forms would be the same as the Address part of a 
Bill for instance)

-- 
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: Any chance of creating a new Google group for Symfony2 only?

2011-06-22 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

+1 for splitting into new lists

> As SF2 RC1 is about to be released, this is the perfect time to move to
> a new list.  The answers on that list are more likely to be "correct" to
> anyone searching the archives (prior to the API being stable, an answer
> could be correct one week and incorrect the next).

this is a very good argument indeed. i am constantly annoyed by finding
3 month old mailing list entries or blog posts that are just not true
anymore. starting with a fresh list that can be searched for answers
that are not obsolete sounds great.

cheers,david
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4BpDgACgkQqBnXnqWBgIuzMACgyEToRWttFvvcGk4SbtTRPFzl
3lYAoKoJQxVYjBp2GHcfIsJOYthRVS6n
=dYny
-END PGP SIGNATURE-

-- 
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: Any chance of creating a new Google group for Symfony2 only?

2011-06-22 Thread Andras
+1

On jún. 22, 07:07, Fabien Potencier  wrote:
> On 6/21/11 5:49 PM, Luis Cordova wrote:
>
> > don't fabien you will give more work to everybody
> > as you said the problem will be only for few more months
> > then sf1.x will die out and problem solved :)
>
> symfony1 is not going to die anytime soon. End of maintenance is end of
> 2012; and people will continue to use it even after that. So, "the end
> of life" of symfony1 will probably be in 2015-2020, not sooner. At
> Sensio, we still have symfony 1.0 applications that won't be migrated to
> 1.4 for instance. And that's fine.
>
> Fabien
>
>
>
>
>
>
>
> > On Tue, Jun 21, 2011 at 9:58 AM, Jeremiah Dodds
> >   wrote:
>
> >> 2011/6/21 Fabien Potencier
>
> >>> I've been thinking about this mailing-list issue a lot during the last few
> >>> months and I'm still convinced that creating more mailing-lists is not the
> >>> right solution. Anyway, as many people think the contrary, here is what I
> >>> propose now:
>
> >>> We create two new mailing-lists: one for symfony1 and one for Symfony2. To
> >>> be clear, this mailing-list (symfony-users) will die. That way, there is 
> >>> no
> >>> "legacy" mailing-list, all symfony users will be treated the same way: 
> >>> they
> >>> will have to do something about their subscription.
>
> >>> If everybody agree, I will start the migration and send invitations for
> >>> all current subscribers.
>
> >>> Cheers,
> >>> Fabien
>
> >> + 1 . How do you feel about having the forums and mailing lists mirror each
> >> other via mail2forum or similar?
>
> >> --
> >> 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: Exception throw UsernamePasswordToken

2011-06-22 Thread Michel Salib
Can you be more specific ?
Also can you show us your User class (and its relations) ?

-- 
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: file upload example?

2011-06-22 Thread oscar balladares
Have you try a postPersist event?

If that is working, and prePersist not, then you can use the postPersist. If
the fileupload returns an exception, then the persist
won't be commited anyway.

Also, on a postPersist event you have access to the Entity's id, which is
very useful for generating an unique name for the file.

On Jun 15, 6:56 pm, Chris  wrote:
> > Thanks for these, though I'm trying to implement multiple files
> > upload: using a collection of a FileFormType that contains a file.
> > I am now stuck at the bindrequest step.
> >
> > In my controller I loop through all the items in the ArrayCollection
> > and do $files[$i]->upload() to mimick what's in that documentation.
> >
> > But there's a problem before that because bindRequest throws a
> > tantrum:
> >   Expected argument of type array, string given
> >   500 Internal Server Error - UnexpectedTypeException
> >
> > Is there something different in the process here to upload a
> > collection of files?
> >
> > On 14 juin, 07:55, Fabien Potencier  >
> >
> >
> >
> >
> >
> >
> > project.com> wrote:
> > > On 6/11/11 12:24 PM, Ruben de Vries wrote:
> >
> > > > Are there any bundles on github that demonstrate a fileupload?
> >
> > > > I'm trying to implement handling the fileupload but I'm not really
> > > > sure how to do it 'the symfony way'
> >
> > > > So some source code to dig through on github would be really helpfull
> > > > (A)
> >
> > >https://github.com/symfony/symfony-docs/blob/master/reference/forms/t.
> ..
> >
> > >https://github.com/symfony/symfony-docs/blob/master/cookbook/doctrine.
> ..
> >
> > > Fabien
>
> --
> 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: Any chance of creating a new Google group for Symfony2 only?

2011-06-22 Thread Marcelo Prizmic
+1 split

2011/6/21 Jeremiah Dodds 

>
>
> On Tue, Jun 21, 2011 at 12:02 PM, Luis Cordova  wrote:
>
>> splitting is counterproductive, we can always hit delete
>> I myself hit a ton of deletes even with sf2 and I am for sf2, so i
>> think people is having too thin of a skin.
>
>
> If you think the use of a 1.x branch of a popular web framework is going to
> die out shortly after the release of a BC-breaking 2.0 branch that shares a
> name, you are mistaken.
>
> Splitting the lists is a one-time effort, with a slope of minor annoyances
> for the users of it that trickles down to nil over the course of a few weeks
> to a month. Not splitting the list means everyone only interested in 1.x or
> 2.x gets to sift through a bunch of noise, constantly.
>
> --
> 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: [Sf2+MongoDB] predefine key for EmbedMany

2011-06-22 Thread Mathias
Sorry, lost the n: EmbedMany.

I don't use github. The code is just an short example to demonstrate
my problem.
The defined array_key won't get used by doctrine/symfony2 for mongodb.

Hope the example is clear enough...

On 21 Jun., 18:00, Luis Cordova  wrote:
> EmbedMay? not clear, please if you have url on github provide it
> sounds interesting about day times and cache
>
>
>
>
>
>
>
> On Tue, Jun 21, 2011 at 9:45 AM, Mathias  wrote:
> > For example these Documents:
>
> > 
> > class LocationCache
> > {
> >    /**
> >     * @var array
> >     * @ODM\EmbedMany(targetDocument="test\TestBundle\Document
> > \LocationCacheDays")
> >     */
> >    protected $days = array();
>
> >    /**
> >     * @param LocationCacheDays
> >     */
> >    public function setDays(LocationCacheDays $days)
> >    {
> >        $day = $days->getDay();
> >        $this->days = array_fill($day, 1, $days);
> >        // or: $this->days[$day] = $days;
> >        // will create the same resulting document
> >    }
>
> >    /**
> >     * @return array
> >     */
> >    public function getDays()
> >    {
> >        return $this->days;
> >    }
>
> > }
>
> > /**
> >  * @ODM\EmbeddedDocument
> >  */
> > class LocationCacheDays
> > {
> >     /**
> >      * @ODM\Int
> >      */
> >     protected $day;
>
> >     // Setter
>
> >     /**
> >      * @param int
> >      */
> >     public function setDay($day)
> >     {
> >        $this->day = $day;
> >     }
>
> >     // Getter
>
> >     /**
> >      * @return int
> >      */
> >     public function getDay()
> >     {
> >         return $this->day;
> >     }
> > }
> > 
>
> > Here an example controller.
> > 
> > $locationCache = new LocationCache();
> > $locationCacheDay = new LocationCacheDays();
> > $locationCacheDay->setDay(10);
> > $locationCache->setDays($locationCacheDay);
> > $dm->persist($locationCache);
> > 
>
> > The expacted Document should look like this:
> > 
> > Array
> > (
> >    [_id] => 4e00aa161c911abd4e01
> >    [days] => Array
> >        (
> >            [10] => Array
> >                (
> >                    [day] => 10
> >                )
>
> >        )
>
> > )
> > 
>
> > but it will result in:
> > 
> > Array
> > (
> >    [_id] => 4e00aa161c911abd4e01
> >    [days] => Array
> >        (
> >            [0] => Array
> >                (
> >                    [day] => 10
> >                )
>
> >        )
>
> > )
> > 
>
> > Is there a way to predefine the array_key in an EmbedMay-Document?
>
> > 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


Re: [symfony-users] Symfony-2 Doctrine: Generateing realtions from annotaion

2011-06-22 Thread Kein
Yes, am trying to "generate:entites" - but it has no effect. Interesting 
that files entities/Products.php entites/Category.php was modifed with any 
"generate:entites" - but it's has no effect and i can't see any 
setter|getter for relation

-- 
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: file upload example?

2011-06-22 Thread Chris

In beta5 that problem I described is now solved, but there's another
one:
when preUpload() gets called, the field 'file' is not filled in
(reference: http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html)
so I have no way to call  'file->guessExtension()'. Any idea??

 -- btw I am testing using (persisted) collections of file objects --


On Jun 15, 6:56 pm, Chris  wrote:
> Thanks for these, though I'm trying to implement multiple files
> upload: using a collection of a FileFormType that contains a file.
> I am now stuck at the bindrequest step.
>
> In my controller I loop through all the items in the ArrayCollection
> and do $files[$i]->upload() to mimick what's in that documentation.
>
> But there's a problem before that because bindRequest throws a
> tantrum:
>   Expected argument of type array, string given
>   500 Internal Server Error - UnexpectedTypeException
>
> Is there something different in the process here to upload a
> collection of files?
>
> On 14 juin, 07:55, Fabien Potencier 
>
>
>
>
>
>
> project.com> wrote:
> > On 6/11/11 12:24 PM, Ruben de Vries wrote:
>
> > > Are there any bundles on github that demonstrate a fileupload?
>
> > > I'm trying to implement handling the fileupload but I'm not really
> > > sure how to do it 'the symfony way'
>
> > > So some source code to dig through on github would be really helpfull
> > > (A)
>
> >https://github.com/symfony/symfony-docs/blob/master/reference/forms/t...
>
> >https://github.com/symfony/symfony-docs/blob/master/cookbook/doctrine...
>
> > Fabien

-- 
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: Any chance of creating a new Google group for Symfony2 only?

2011-06-21 Thread Fabien Potencier

On 6/21/11 5:49 PM, Luis Cordova wrote:

don't fabien you will give more work to everybody
as you said the problem will be only for few more months
then sf1.x will die out and problem solved :)


symfony1 is not going to die anytime soon. End of maintenance is end of 
2012; and people will continue to use it even after that. So, "the end 
of life" of symfony1 will probably be in 2015-2020, not sooner. At 
Sensio, we still have symfony 1.0 applications that won't be migrated to 
1.4 for instance. And that's fine.


Fabien


On Tue, Jun 21, 2011 at 9:58 AM, Jeremiah Dodds
  wrote:



2011/6/21 Fabien Potencier


I've been thinking about this mailing-list issue a lot during the last few
months and I'm still convinced that creating more mailing-lists is not the
right solution. Anyway, as many people think the contrary, here is what I
propose now:

We create two new mailing-lists: one for symfony1 and one for Symfony2. To
be clear, this mailing-list (symfony-users) will die. That way, there is no
"legacy" mailing-list, all symfony users will be treated the same way: they
will have to do something about their subscription.

If everybody agree, I will start the migration and send invitations for
all current subscribers.

Cheers,
Fabien


+ 1 . How do you feel about having the forums and mailing lists mirror each
other via mail2forum or similar?

--
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] Request for Symfony 2 installation guide

2011-06-21 Thread Vaibhav Rajput
@oscar balladares, how many times i have to say i m not blaming to fabien. i
m just giving feedback or some suggestion to fabien for the documentation so
it is easy for the beginner like me.. i know very well that everything is
available on open internet but the thing is u have search on it... so rather
than searching on the net while learning symfony2, if docs is available then
it's easy... Man...

-- 
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] Exception throw UsernamePasswordToken

2011-06-21 Thread elcabong
Why happened this?

Symfony\Component\Security\Core\Authentication\Token
\UsernamePasswordToken::serialize() must return a string or NULL


-- 
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] Changing connections parameter dynamically

2011-06-21 Thread allan
Hi guys,

I want to have two application, the first one with one database that
hold the information off some clients (database_user, database_pass,
database_IP, database_name) and the second one with a lot of databases
the hold the information related with each company. Every client will
have a database for save his data.

I want to create in the first app a form in which the client will
enter his user, pass and company. Then with the name of the company I
will get from the database all the information (database connexion
parameters), and redirect the request to the second application, in
the request I will send all the database connexion parameter and a
token that identify the user. Once in the second application I want to
save in the user seccion all the connection parameters and try to
change dynamically the parameter coneccion for each user.

So my question this time is, Is there any way in which I can change
dynamically the database parameter connexion? I want to save the
parameter connexion in the user section.

Any idea or advise???

-- 
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] Weird Issue with Mappings (The identifier generation strategy for this entity requires the ID field to be populated before)

2011-06-21 Thread scott
I have installed the FOS\UserBundle (however I do not think the issue
lies inside the bundle) after creating the user class

class User extends BaseUser{

/** @ORM\Id
 * @ORM\Column(type="integer")
 * @ORM\GeneratedValue(strategy="AUTO")
 */
protected $id;

.

I updated my schema. When I tried to add a user

php app/console fos:user:create username email password

I get the following error

[Doctrine\OR \ORMException]

Entity of type APP\BUNDLE\Entity\User is missing an assigned ID. The
identifier generation strategy for this entity requires the ID field
to be populated before EntityManager#persist() is called. If you want
automatically generated identifiers instead you need to adjust the
metadata mapping accordingly.

and sure enough the extras field in my db is set to none. All of my
other entities which auto incrementing IDs work fine. When I remove
extends BaseUser though and just have a user class the extras field is
set to auto increment as required.

At first I thought it might be something in the Bundles Mappings
overriding my mapping but there is no entry in the bundles mapping for
ID.

Any suggestions would be much appriciated

-- 
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: Jobeet Day 3 : problem with Doctrine folder

2011-06-21 Thread oscar balladares
I'm pretty sure there is a doctrine folder. I downloaded it 2 days ago ;)

2011/6/21 Tomasz Madeyski 

> I'm not sure if I remember well, but I think that actually there was
> no "doctrine" folder.
>
> Anyway, try to create folder "doctrine" and put schema.yml in it (/
> config/doctrine/schema.yml)
>
>
>
> On 20 Cze, 23:17, moolligan  wrote:
> > Hi everybody,
> >
> > I'm doing the Jobeet tutorial whith Symfony 1.4.
> > On Day 3, I have to modify the schema.yml file (to build my database).
> > This file is supposed to be in :
> > config/doctrine/schema.yml
> >
> > But in my project, I only have a /config/ folder (without the /
> > doctrine/ folder inside). Moreover, in this config folder, I have
> > theses files :
> > databases.yml
> > ProjectConfiguration.class.php
> > propel.ini
> > properties.ini
> > rsync_exclude.txt
> > schema.yml
> >
> > As you can see, there is a "propel.ini" file, but no doctrine file.
> >
> > What have I done wrong ?
> >
> > 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


Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only?

2011-06-21 Thread oscar balladares
+1 For Fabien proposal (I would vote him for president of my nation if I
could).

Core developers, and Symfony Ninjas will still be able to suscribe to both
lists and feel in peace with themselves :P

Luis Cordoba: Very funny - muy gracioso :D S1 won't die as long as S1
projects owners/webmaster/programmers/designers get profits from them.



2011/6/21 Rich Sage 

>
>
> 2011/6/21 Fabien Potencier 
>
>
>> I've been thinking about this mailing-list issue a lot during the last few
>> months and I'm still convinced that creating more mailing-lists is not the
>> right solution. Anyway, as many people think the contrary, here is what I
>> propose now:
>>
>> We create two new mailing-lists: one for symfony1 and one for Symfony2. To
>> be clear, this mailing-list (symfony-users) will die. That way, there is no
>> "legacy" mailing-list, all symfony users will be treated the same way: they
>> will have to do something about their subscription.
>>
>> If everybody agree, I will start the migration and send invitations for
>> all current subscribers.
>>
>> Cheers,
>> Fabien
>>
>>
> +1 from me.
>
> --
> Rich Sage
> York, UK
> rich.s...@gmail.com
>
> --
> 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] Request for Symfony 2 installation guide

2011-06-21 Thread oscar balladares
Mostly web servers are running UNIX kind of SO's.

And it is very easy to install all dependencies: debian, ubuntu like ones
have apt-get; Red Hat, Centos, Fedora have 'yum'.

You should consider to learn unix based SO, your work become extremely
maintenable when you get used to it (instead of blaming Fabien :'(  )

Now, if you only have access to a Windows OS (due to work policies), then it
is another story :D

2011/6/21 Vaibhav Rajput 

> Tac Tacelosky u absolutely rite but u know simple symfony2 doesnt give APC
> recommended some resign is der behind of it... Ya that is performance... so
> thats y i thinking on it...
>
> --
> 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] [s2][doctrine2] Update LifeCycleCallBack event not working [beta5]

2011-06-21 Thread oscar balladares
Hi Marcelo; yes, of course:

I'm currently using YML config instead of Annotations. I do really love to
separate metadata from Entities classes.

You have to tell doctrine to enable LifeCycleCallback event like this:

Oscar\HotelBundle\Entity\Foto:
type:  entity
table:  foto
repositoryClass: Oscar\HotelBundle\Repo\FotoRepo
id:
id:
type:  integer
generator:
strategy:  AUTO
fields:
titulo:
type:  string
length: 100
 notnull: false

*lifecycleCallbacks:*
*postPersist: [ uploadFile ]*


So you should have an uploadFile() method defined in the entity's class.

When you call $em->flush() Doctrine will look for events prior or post
flushing. (prePersist, postPersist, preUpdate, postUpdate, preRemove,
postRemove)

Class Foto
{
//private properties

//public getters and setters

public function uploadFile()
{
  //this is invoked after this entity is persisted.
}

}

In my case, every event is invoked properly, but preUpdate nor postUpdate;
If I would have misstyped prePersist: [ uploadFil*eIMisstypedThis* ]
the framework will thrown an exception telling me that such method doesn't
exist in the entity class; if I do the same for preUpdate, or postUpdate,
it will be ignored, like it doesn't check the method.

Regards!

2011/6/20 Marcelo Prizmic 

> Hi Oscar
> Could you post some code about how to use per or post events?
> Thanks
> Marcelo
>
>
> 2011/6/20 oscar balladares 
>
>> Hi everybody!.
>>
>> I'm using Yaml configuration for doctrine metadata.
>>
>> All others events (prePersist, postPersist, preRemove, postRemove) are
>> working properly, but not the preUpdate and PostUpdate.
>>
>> Of course, I'm just calling the 'persist' method of the $EntityManager:
>>
>> $em->persist($AlreadyInDatabaseEntityInstance);
>> $em->flush();
>>
>> The row in the database is updated actually, but the method is never
>> called.
>>
>> the easiest way to prove myself I'm not crazy, is that if the method name
>> that has been set in the metadata is not correct,
>> then when the Event is called, an exception will be thrown, i.e:
>>
>> preRemove: [ preRemoveMethod ]
>>
>> then I: $em->remove($entity)
>>
>> If the preRemoveMethod doesn't exist in the Entity class, then an
>> excepetion will be trhown.
>> In the other hand, preUpdate/postUpdate will be ignored completely. I can:
>>
>> preUpdate: [ asdfasdfaThisMethodDoesNotExistInTheEntityClassaesrseres ]
>>
>> No exception will be thrown, knowing that such method doesn't exist at
>> all.
>>
>> (It won't happen with any other event).
>>
>> What could be wrong?
>>
>> Regards!
>>
>> --
>> 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


Re: [symfony-users] Re: Any chance of creating a new Google group for Symfony2 only?

2011-06-21 Thread Rich Sage
2011/6/21 Fabien Potencier 


> I've been thinking about this mailing-list issue a lot during the last few
> months and I'm still convinced that creating more mailing-lists is not the
> right solution. Anyway, as many people think the contrary, here is what I
> propose now:
>
> We create two new mailing-lists: one for symfony1 and one for Symfony2. To
> be clear, this mailing-list (symfony-users) will die. That way, there is no
> "legacy" mailing-list, all symfony users will be treated the same way: they
> will have to do something about their subscription.
>
> If everybody agree, I will start the migration and send invitations for all
> current subscribers.
>
> Cheers,
> Fabien
>
>
+1 from me.

-- 
Rich Sage
York, UK
rich.s...@gmail.com

-- 
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: Learn Symfony2 or switch to Zend ?

2011-06-21 Thread Marco Pivetta
I'm still waiting for Zend Framework 2 MVC to start some new projects... The
draft is really interesting, and if it is implemented well as it is
defined... Well then Symfony 2 will be just part of my /lib for me :)

I'm just waiting a couple of weeks more to see what is going on :D
Marco Pivetta
http://twitter.com/Ocramius
http://marco-pivetta.com



On 21 June 2011 22:09, oscar balladares  wrote:

> Yes, de DI and Delivering Bundles as Plugins is so easy and powerful!
>
>
> 2011/6/21 dmitrybelyakov 
>
>> Hi Manu.
>>
>> We're currently considering the same choice: wait for ZF2 or switch to
>> SF2.
>> Doing ZF development for several years and following ZF2 development
>> closely we're seriously
>> considering moving to SF2 for the following reasons:
>>
>> 1. Symfony 2 is architectured better
>> 2. Easy and clear configuration
>> 3. Lots of goodies like Doctrine, DI, EventDispatcher, Twig (of course
>> you can do those things with Zend but that will require lots of
>> hacking)
>> 4. Better developer experience
>> 5. Symfony project is more open to contributions (no CLA)
>> 6. And it has bundles!
>>
>>
>> On 20 июн, 19:00, Manu  wrote:
>> > My development team created a website with symfony 1.4, but the
>> > project turned out a nightmare : few knew how to code with symfony, we
>> > were too many working on the project, and we ended up with a mess hard
>> > to maintain.
>> >
>> > Personally, I'm a symfony fan and can't wait the release of 2.0, but
>> > the team doesn't want to hear any of it, thinking Zend Framework will
>> > be better, since it is based on independent modules (but so is
>> > Symfony2, right ?)
>> >
>> > In any case, I will insist devs have training on either sf2 or Zend
>> > before starting a new project.
>> >
>> > Any thoughts ? Should I insist on using Symfony 2, or are they right
>> > in asking for ZF ?
>>
>> --
>> 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


Re: [symfony-users] Re: Learn Symfony2 or switch to Zend ?

2011-06-21 Thread oscar balladares
Yes, de DI and Delivering Bundles as Plugins is so easy and powerful!

2011/6/21 dmitrybelyakov 

> Hi Manu.
>
> We're currently considering the same choice: wait for ZF2 or switch to
> SF2.
> Doing ZF development for several years and following ZF2 development
> closely we're seriously
> considering moving to SF2 for the following reasons:
>
> 1. Symfony 2 is architectured better
> 2. Easy and clear configuration
> 3. Lots of goodies like Doctrine, DI, EventDispatcher, Twig (of course
> you can do those things with Zend but that will require lots of
> hacking)
> 4. Better developer experience
> 5. Symfony project is more open to contributions (no CLA)
> 6. And it has bundles!
>
>
> On 20 июн, 19:00, Manu  wrote:
> > My development team created a website with symfony 1.4, but the
> > project turned out a nightmare : few knew how to code with symfony, we
> > were too many working on the project, and we ended up with a mess hard
> > to maintain.
> >
> > Personally, I'm a symfony fan and can't wait the release of 2.0, but
> > the team doesn't want to hear any of it, thinking Zend Framework will
> > be better, since it is based on independent modules (but so is
> > Symfony2, right ?)
> >
> > In any case, I will insist devs have training on either sf2 or Zend
> > before starting a new project.
> >
> > Any thoughts ? Should I insist on using Symfony 2, or are they right
> > in asking for ZF ?
>
> --
> 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] Separating the 3rd Party Bundles from Symfony2 SE to ease upgrades

2011-06-21 Thread Jeremiah Dodds
On Tue, Jun 21, 2011 at 11:25 AM, keymaster  wrote:

> >  *bin/vendors* script (the deps file that is used by this script is
> intended to be modified to add your own dependencies if you > want to use
> this way to manage the dependencies).
>
> Thanks, that's great to know.
>
> Is there some reference where we can find out more about how to use the
> bin/vendors script to upgrade easily from one release to the next, including
> other 3rd party libraries?
>
>
It basically checks out the stuff in ./deps , optionally at the commit
specified in ./deps.lock . You can add a dependency by adding it in deps,
following the pattern other things are doing, and you can lock that
dependency to a commit by specifying it in deps.lock.

-- 
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: Any chance of creating a new Google group for Symfony2 only?

2011-06-21 Thread Jeremiah Dodds
On Tue, Jun 21, 2011 at 12:02 PM, Luis Cordova  wrote:

> splitting is counterproductive, we can always hit delete
> I myself hit a ton of deletes even with sf2 and I am for sf2, so i
> think people is having too thin of a skin.


If you think the use of a 1.x branch of a popular web framework is going to
die out shortly after the release of a BC-breaking 2.0 branch that shares a
name, you are mistaken.

Splitting the lists is a one-time effort, with a slope of minor annoyances
for the users of it that trickles down to nil over the course of a few weeks
to a month. Not splitting the list means everyone only interested in 1.x or
2.x gets to sift through a bunch of noise, constantly.

-- 
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] Request for Symfony 2 installation guide

2011-06-21 Thread Vaibhav Rajput
Tac Tacelosky u absolutely rite but u know simple symfony2 doesnt give APC
recommended some resign is der behind of it... Ya that is performance... so
thats y i thinking on it...

-- 
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] Request for Symfony 2 installation guide

2011-06-21 Thread Tac Tacelosky
Fortunately, APC isn't required to run Symfony.

But what a pain it is that APC isn't available on Windows, and that
pecl4win.php.net is no longer, and rant, rant.  Windows is definitely a
second-class citizen in the PHP community.  I ran 5.2.9 for a long time just
so I could use php_apc, but eventually gave it up.

Tac

On Tue, Jun 21, 2011 at 3:56 AM, David Mann wrote:

> Hi mate,
>
> Apc doesnt work with windows on php5.3
>
>
> Sent from my iPad
>
> On Jun 21, 2011, at 5:42 PM, Vaibhav Rajput  wrote:
>
> > Hi All,
> >
> > currently i m working on symfony 1.4. now plan to learn symfony 2...
> > i already went through some documentation
> > i have downloaded bundles
> > i think symfony 2 is totaly diffrent with symfony 1.4...
> >
> > My question is
> >
> > i m struggling with configuration step...
> >
> > ---http://localhost/Symfony/web/config.php
> >
> > i m using XAMPP 1.7.4
> >
> > the page is showing me that
> >
> > 1) APC is require
> > 2) some php.ini extension setting
> > 3) intl
> >
> > if you give more detail from wher to download APC and intl and how to
> > install and configure it...
> >
> > Thank You...
> >
> > --
> > 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


Re: [symfony-users] Re: Request for Symfony 2 installation guide

2011-06-21 Thread Vaibhav Rajput
Wow so many replies hmmm,,,
hey michel i m not blaming to some one... i m just giving feedback that if
they will put these things also in doc then users who are beginner no need
to search here n der they wil get to know everything from one resource
only...

seven seven i hav already tried with it... i have puted in windows folder
but not getting re,,,

webdevpt we r not comparing here just telling to give some lil bit note
about installation process...

devid for me APC is working with windows the problem is with intl than also
new version intl 4.*

thanks for the link alex as i said intl 3.6 is working finely... but
symfony2 recommended intlo 4.* so i downloaded all icu 4 file for intl but
not working at all...

Ya All are rite but the thing is performance...with utilize all the
functionality of the frameworks...


Thanks To All...

Regards,
Vaibhav Rajput

-- 
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 - SonataUserBundle] Why did you remove the getParent method from SonataUserBundle?

2011-06-21 Thread Thomas Rabaix
Best of both world :
https://github.com/sonata-project/UserBundle/commit/374b9397f28ab52de15208486a497e98b855e9c5

On Tue, Jun 21, 2011 at 6:48 PM, Thomas Rabaix  wrote:

> You can still create your own bundle which extends FOSUserBundle. But yes
> this duplicate the EasyExtends ideas ... Not sure if the user want to
> extends the FOSUserBundle or SonataUserBundle... maybe there is a way to
> make it optional.
>
>
> On Tue, Jun 21, 2011 at 6:27 PM, keymaster  wrote:
>
>> Here's a use case:
>>
>> If you use EasyExtends to create an Application/Sonata/UserBundle, and
>> there you want to override the FOSUserBundleTemplates, you need the
>> SonataUserBundle to inherit from FOSUserBundle, or you won't be able to do
>> that.
>>
>> So, while SonataUserBundle doesn't override anything from FOSUserBundle,
>> the children of SonataUserBundle do.
>>
>> Removing the getParent method causes users of SonataUserBundle to have to
>> change the code locally to make it inherit.
>>
>> Am I wrong?
>>
>>  --
>> 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
>>
>
>
>
> --
> Thomas Rabaix
> http://rabaix.net
>



-- 
Thomas Rabaix
http://rabaix.net

-- 
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: sfForkedDoctrineApplyPlugin, several profiles, inheritance, sluggable behavior

2011-06-21 Thread lucia
Hi, thanks for your time, I have this:

//Basemyprofile1
$timestampable0 = new Doctrine_Template_Timestampable();
$sluggable0 = new Doctrine_Template_Sluggable(array(
 'fields' =>
 array(
  0 => 'name',
 ),
 'unique' => true,
 ));
$this->actAs($timestampable0);
$this->actAs($sluggable0);



On 21 jun, 14:52, Grzegorz Śliwiński  wrote:
> hmmm... could you check your Basemyprofile1 or Basemyprofile2 classes
> if they include your behaviours?
>
> On Jun 20, 2:13 pm, lucia  wrote:
>
>
>
> > Hi,
> > I followed the readme of the plugin, the problem is that when I
> > rebuild model I lose behaviors,
> > I have this model:
> > myprofile1:
> >   inheritance:
> >     type: column_aggregation
> >     extends: sfGuardUserProfile
> >   actAs: { Timestampable: ~ , Sluggable:{ fields:[name], unique:
> > true}}
> >   columns:
> >   
> >   relations:
> >   ...
> > myprofile2:
> >   inheritance:
> >     type: column_aggregation
> >     extends: sfGuardUserProfile
> >   actAs: { Timestampable: ~ }
> >   columns:
> >   
> >   relations:
> >   ...
> > I expected field called 'slug' , but no...
> > Any idea? Maybe colision with inheritance? I changed the position of
> > inheritance but the field slug doesn't
> > appear..
> > Does anyone know how I can fix this? The sluggable behavior is very
> > important for myprofile1 table.
> > On the other hand, can I use concrete inheritance with this plugin?
> > Thanks a lot
> > PS: I'm sorry for my English- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

-- 
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 - SonataUserBundle] Why did you remove the getParent method from SonataUserBundle?

2011-06-21 Thread Thomas Rabaix
You can still create your own bundle which extends FOSUserBundle. But yes
this duplicate the EasyExtends ideas ... Not sure if the user want to
extends the FOSUserBundle or SonataUserBundle... maybe there is a way to
make it optional.

On Tue, Jun 21, 2011 at 6:27 PM, keymaster  wrote:

> Here's a use case:
>
> If you use EasyExtends to create an Application/Sonata/UserBundle, and
> there you want to override the FOSUserBundleTemplates, you need the
> SonataUserBundle to inherit from FOSUserBundle, or you won't be able to do
> that.
>
> So, while SonataUserBundle doesn't override anything from FOSUserBundle,
> the children of SonataUserBundle do.
>
> Removing the getParent method causes users of SonataUserBundle to have to
> change the code locally to make it inherit.
>
> Am I wrong?
>
>  --
> 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
>



-- 
Thomas Rabaix
http://rabaix.net

-- 
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 - SonataUserBundle] Why did you remove the getParent method from SonataUserBundle?

2011-06-21 Thread keymaster
Here's a use case:

If you use EasyExtends to create an Application/Sonata/UserBundle, and there 
you want to override the FOSUserBundleTemplates, you need the 
SonataUserBundle to inherit from FOSUserBundle, or you won't be able to do 
that.

So, while SonataUserBundle doesn't override anything from FOSUserBundle, the 
children of SonataUserBundle do.

Removing the getParent method causes users of SonataUserBundle to have to 
change the code locally to make it inherit.

Am I wrong?

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


  1   2   3   4   5   6   7   8   9   10   >