Re: [symfony-users] Re: notice: serialize() __sleep

2011-05-16 Thread oscar balladares
Hi Luis, I solved the problem. Before making the summary I must point that Tim was reffering to what I thoght was Serializable about erroneously, sorry, my fault :D What I found (I have to start reading docs more deeply :P): The PHP bible says: serialize() checks if your class has a function

Re: [symfony-users] Re: notice: serialize() __sleep

2011-05-16 Thread oscar balladares
According what I have read so far, serialize/unserialize $entities with proxies associations is not advised. And of course, if you are saving objects in session() vars, it is an innecesary load to save proxies information. So, it is adviced to detach proxies from entities (in case where entites

Re: [symfony-users] Re: notice: serialize() __sleep

2011-05-16 Thread Marco Pivetta
Careful! The entity manager's detach method does not return anything! Marco Pivetta @Ocramius http://twitter.com/Ocramius http://marco-pivetta.com On 16 May 2011 08:55, oscar balladares liebegr...@gmail.com wrote: According what I have read so far, serialize/unserialize $entities with

[symfony-users] Re: Stop validation after first assert if it's false

2011-05-16 Thread chafik
Nobody can help ? On May 13, 5:24 pm, chafik chafik.hn...@gmail.com wrote: Hello, I'm creating my forms for my application based on my entities. I'm wondering if it is possible to stop validation when one rule is not verified. For example, this is an attribute of one of my entities :    

[symfony-users] Re: installation help

2011-05-16 Thread Glenn Z
Thank you Christophe. I'm going to start a new thread with the appropriate title for search purposes as I'm having some serious issues with this migration. I've made some progress and had some set backs in case anyone is wondering. -- If you want to report a vulnerability issue on symfony,

[symfony-users] What is the best way to migrate a project in Symfony?

2011-05-16 Thread Glenn Z
First off, I'm a Symfony noob. I inherited a project from a Linux installation of SF. I was given the source code and told to make edits. I'm having great difficulty getting this code to work. I've set up a WAMP server and got Symfony running (PEAR,Paths,httpd, etc). I've imported the DB

Re: [symfony-users] What is the best way to migrate a project in Symfony?

2011-05-16 Thread Michał Piotrowski
Hi, 2011/5/16 Glenn Z gl...@sweetwoodguitars.com: First off, I'm a Symfony noob. Just read this http://www.symfony-project.org/jobeet/1_4/Doctrine/en/ everything is documented - step by step. Here is another useful documentation http://www.symfony-project.org/doc/1_4/  I inherited a project

[symfony-users] [Symfony2] Server configuration - Warning: is_file(): open_basedir restriction in effect

2011-05-16 Thread seven seven
Hi all, I will get to the point very fast... :P. In the past I did had few shared hosting accounts and I wasn't happy with the configuration so far, so I ended up with a VPS server which I installed and configured myself. Anyway I ended with the following warnings when I am trying to access the

[symfony-users] Re: SF2 | Implementing Doctrine entities audit logging

2011-05-16 Thread Valera
Everyone, thanks for your help. I'm going to use an EventListener. you cannot do a circular reference. so if your service has a dependency to the entity manager, a solution is to inject the container so that you can retrieve the entity manager when you need to use it instead of doing it when

[symfony-users] Re: Form spread over multiple pages (wizard) ?

2011-05-16 Thread Stephan Petzl
Me too :) On May 16, 12:43 am, oscar balladares liebegr...@gmail.com wrote: If you use JQuery it should be easy. There is a way to hide/show div/ elements. You can render the form in two divs form action=some route method='post'     div id=form         render field 1         render

[symfony-users] propel:build-model causing error problems

2011-05-16 Thread Gareth McCumskey
Hi all, I am currently having an issue attempting to run a ./symfony propel:build-model on a symfony 1.1 application. I keep an error message about running out of memory as follows: PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in

Re: [symfony-users] Adding a required checkbox to a form - #sf1.4

2011-05-16 Thread Gareth McCumskey
What it sounds like you need is a post validator... http://www.symfony-project.org/forms/1_4/en/02-Form-Validation#chapter_02_global_validators On Mon, May 16, 2011 at 1:58 PM, codecowboy l...@lukem.co.uk wrote: Hi, I can't find an example of how to add a required checkbox to a form which is

[symfony-users] Re: Adding a required checkbox to a form - #sf1.4

2011-05-16 Thread Bart van den Burg
Won't simply setting required=true do the trick? On May 16, 1:58 pm, codecowboy l...@lukem.co.uk wrote: Hi, I can't find an example of how to add a required checkbox to a form which is unrelated to my model e.g a checkbox to accept the terms and and conditions for registration. I think

Re: [symfony-users] Re: How change error message in repeated form???

2011-05-16 Thread Dennis Jacobfeuerborn
This might help: http://symfony.com/doc/current/book/validation.html#constraint-configuration -- 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

[symfony-users] Re: Form spread over multiple pages (wizard) ?

2011-05-16 Thread Tristan
Are you able to have a field marked as NotBlank() on step two and not to raise error after step one ? (claiming that he needs the step two fields?) oh, I get it, you call the validator on each steps. I'm interested into a javascriptless method for formwizzards. :-) On 15 mai, 19:19, dustin10

[symfony-users] Issue with a widget

2011-05-16 Thread Fernando Grassi de Oliveira
Hello! I'm facing a problem with a form. I'm getting a 500 | Internal Server Error | InvalidArgumentException Widget url does not exist. I don't know what else to do... On my *BasePessoaForm.php * I have this code. public function setup() { $this-setWidgets(array( ... 'url'

[symfony-users] Re: Issue with a widget

2011-05-16 Thread Fernando Grassi de Oliveira
Err.. nervermind... I found out that there where a unset on that field sorry Att, Fernando Grassi de Oliveira fgra...@gmail.com On Mon, May 16, 2011 at 11:14, Fernando Grassi de Oliveira fgra...@gmail.com wrote: Hello! I'm facing a problem with a form. I'm getting a 500 | Internal

Re: [symfony-users] Re: notice: serialize() __sleep

2011-05-16 Thread oscar balladares
Yes, you are right. I hadn't try out the -detach() method :P Sorry. I saw a tutorial that seemed very convincing :P (it was very late when posted last email and I didn't try it till now). My apologies :F 2011/5/16 Marco Pivetta ocram...@gmail.com Careful! The entity manager's detach method

Re: [symfony-users] deployment

2011-05-16 Thread Hamza Tlili
thank for your reply i have the sfguardpermission enabled i have this error when i try to login: he look for a columns slug in sfguarduser table but there is no columns 00 | Internal Server Error | Doctrine_Connection_Mysql_ExceptionSQLSTATE[42S22]: Column not found: 1054 Unknown column 's.slug'

[symfony-users] Re : [sf2] Service parameters definition

2011-05-16 Thread winzou
For people interested in the solution. Actually the $processor-process() doesn't register any parameter. It just parses the content of $configs, which is the content of app/config/config.yml. So you have to manually (??) register each parameter into the container. This can be done thanks to

[symfony-users] Displaying an sfDoctrineGuard Login form in a modal dialog box

2011-05-16 Thread codecowboy
Hi, Anyone out there got any examples of using a modal dialog to display, for example, a login form in Symfony 1.4? Would I just need to set the path of the modal box to a symfony action and ensure that the action does not render the entire layout? What do I need to do regarding validation and

Re: [symfony-users] doctrine2 numRows

2011-05-16 Thread Vincent Lechemin
Just use the php function count on the results, it is O(1). -- Vincent -- 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

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

2011-05-16 Thread keymaster
Having all the symfony 1.x releases mixed in with Symfony 2 posts can sometimes make it difficult to discern which Symfony people are talking about in their posts. Not everyone is explicit on whether they are referring to Symfony1 or Symfony2. This is not only a problem for those working on

Re: [symfony-users] Re: One-to-one association in form

2011-05-16 Thread Erkhembayar Gantulga
In Symfony2 you can load field from Doctrine Entity as following: $builder-add('category', 'entity', array( 'class' = 'Acme\BlogBundle\Entity\Category', // your Entity class namespace 'property' = 'name', //name of your property that can show up )); Hope

[symfony-users] Re: [Symfony 2] Login using built-in security bundle

2011-05-16 Thread Filipe La Ruina
Hey Guys, Sorry to bring the post back to life but the problem returned! So, I did some other things in the project and wanted to do the login with an entity. Although I found out I was using an older version so I was having some problems following the docs (and I couldn't do the login steps

Re: [symfony-users] Re: [Symfony 2] Login using built-in security bundle

2011-05-16 Thread Christophe COEVOET
Le 16/05/2011 19:32, Filipe La Ruina a écrit : Hey Guys, Sorry to bring the post back to life but the problem returned! So, I did some other things in the project and wanted to do the login with an entity. Although I found out I was using an older version so I was having some problems

Re: [symfony-users] doctrine2 numRows

2011-05-16 Thread Marco Pivetta
Sergio, don't worry about the two queries. Even on MySQL it is OFTEN true that using SQL_CALC_FOUND_ROWS is slower than using two different queries. Don't really know why, but I suppose it has to do with internal optimization issues... Marco Pivetta @Ocramius http://twitter.com/Ocramius

[symfony-users] Re: [Symfony2] Embedding forms and errors not working as expected

2011-05-16 Thread yethee
You tested this solution with the CollectionType? -- 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] sfThumbnailPlugin Symfony 1.4

2011-05-16 Thread Jérémie Gillet
Good evening, I have an issue with sfThumbnailPlugin. Indeed, all the documentation that is included in the Readme file, fit for the 1.2 version of Symfony and no more (methods like getFileName() and getFilePath() doesn’t seem to be recognized by my version of Symfony). What about the

[symfony-users] ACL How to check if user can create object without object itself?

2011-05-16 Thread realmfoo
I mean, is there some thing like this? if ($this-get('security.context')-isGranted('VIEW', new ClassIdentity('EntityBundle\Entity'))) { ... } Or it is only possible by using roles? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] Migrating an old Symfony project

2011-05-16 Thread Esdras Beleza
Hi folks, I work with PHP for some years, but I'm new to Symfony. I'm working with some legacy code, it's an old Symfony 1.0 based project and I'll have to upgrade it to 1.4 version. I've read some texts that say that I need to upgrade to each old version until I reach 1.4. While trying to

[symfony-users] More complex routing

2011-05-16 Thread p...@webfactory.de
Hi, our company would like to switch to Symfony2 as its major development platform, so we are currently evaluating it against our needs. As far as I can seen the following needs regarding routing might be problematic with Symfony2: 1. Routing of nested slugs Imagine we have a entity called

[symfony-users] sfShoppingCartPlugin repository not found

2011-05-16 Thread Justin H
Hey Guys, Getting a 404 on http://svn.symfony-project.com/plugins/sfShoppingCartPlugin I know its deprecated but did it get deleted from repo for some reason? Thanks Justin -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] auth error

2011-05-16 Thread bitgandtter
please i need help with this Catchable fatal error: Argument 4 passed to Symfony\Component\Security \Core\Authentication\Token\UsernamePasswordToken::__construct() must be an array, object given, called in /var/www/citasmedicas/vendor/

[symfony-users] Re: [Symfony2] Form spread over multiple pages (wizard) ?

2011-05-16 Thread dustin10
I implemented a two-step form using validation groups. Basically I created a form type and then i have a method on that class like configForStepTwo(). In this method i make everything for step one hidden inputs. This way none of the info is saved until the second step is completed. I will post

[symfony-users] assetic, compass filter and scss files

2011-05-16 Thread matteosister
Hello everybody! I'm trying to configure assetic to work with compass and scss. I don't understand if I have (in some way) to manually specify to the compass filter to run sass with --scss flag, or if assetic is supposed to manage the file extension. The CompassFilter from Assetic inherit from

Re: [symfony-users] Re: Role based redirect?

2011-05-16 Thread oscar balladares
Dobervich? the one from http://www.dobervich.com/ ??? Hey dude, I'm a big fan of your blog, hope you can update it!! I'll check your implementation to do things as they should. Regards! (Sorry for spaming :( 2011/5/14 dustin10 ddoberv...@gmail.com I don't think it can be done using

Re: [symfony-users] Re: [Symfony 2] Login using built-in security bundle

2011-05-16 Thread Filipe La Ruina
Hey, Thanks! Totally forgot about that requirement (it was not in the version I had, like Daniel mentioned) I really got confused with the other version I messed with. Thanks again! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

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

2011-05-16 Thread Jeremiah Dodds
On Mon, May 16, 2011 at 1:15 PM, keymaster ad...@optionosophy.com wrote: Having all the symfony 1.x releases mixed in with Symfony 2 posts can sometimes make it difficult to discern which Symfony people are talking about in their posts. Not everyone is explicit on whether they are referring

Re: [symfony-users] Re: One-to-one association in form

2011-05-16 Thread Erkhembayar Gantulga
Hi JP. if read earlier post, I posted it in this discussion. OK, i show you in sf1.4: You can do it following 2 ways: 1. $this-widgetSchema['your_field'] = new sfWidgetFormDoctrineChoice( array( 'model' = 'Model

Re: [symfony-users] Re: notice: serialize() __sleep

2011-05-16 Thread Luis Cordova
someone has to write about this case more clearly to explain to all This example is perfect, although one more could be added Even though is not sf2 related specifically I think that it has to be explained since we are going to run into these kind of problems Thanks On Mon, May 16, 2011 at

Re: [symfony-users] Re: notice: serialize() __sleep

2011-05-16 Thread oscar balladares
Another issue that I run into is: Let's say we have object A, and object A has refernce to Object B, both are entities instances, and reference of B is actually a proxy. This is the case when retrieving A with the entity manager. The reference of Object B is a doctrine proxy of Object B actually.

Re: [symfony-users] Re: notice: serialize() __sleep

2011-05-16 Thread Luis Cordova
yes and if you find a resource or more styled example or post that can clarify this further would be great On Mon, May 16, 2011 at 9:48 PM, oscar balladares liebegr...@gmail.com wrote: Another issue that I run into is: Let's say we have object A, and object A has refernce to Object B, both are

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

2011-05-16 Thread oscar balladares
Legacy sounds a little bit like les misérables hahaha. I'm pretty sure that S1 people will feel like the forgotten ones with this title. But the point is that we think that this list is becoming inmantainable. Symfony 1 y so different to Symfony 2, that this can be compared to having a CakePHP

[symfony-users] DependencyInjection\Extension - Definitions as arguments?

2011-05-16 Thread ericclemmons
Howdy, I have an Extension that, upon parsing a config, does the following: $serviceDef = $container-getDefinition('my.service'); $adapterRef = new Definition('%my.adapter.class%'); $adapterRef-addMethodCall('setDescription', 'Symfony Rocks!');