[symfony-users] Error:Call member function getDescription() in non object

2011-03-01 Thread Kiran
Hello Friends, I am using symfony 1.1.1. I got error in my template file. I do not understand error meaning. I think the the error is occured at foreach loop. Error is as follow Call memmber function getDescription() in non object ///

Re: [symfony-users] Executing some code before every action of every controller

2011-03-01 Thread Sebastien Armand [Pink]
Hi, If you are under symfony 1.x and not symfony2, then you need to check about filters and the filter chain. You will be able in a config file to declare your filter class anywhere inside the filter chain (including just before the controller is called). Allowing you to execute whatever code you

Re: [symfony-users] Protect development credentials when deploying application

2011-03-01 Thread Michał Piotrowski
2011/3/1 Alex Pilon : > What do you mean there are none bundled with sf1.4? I belive that he is talking about configs in Symfony2 config_dev.yml config_test.yml routing_dev.yml config_prod.yml config.yml routing.yml > I mean in databases.yml for example, when you have > dev: >   connec

Re: [symfony-users] Protect development credentials when deploying application

2011-03-01 Thread Stéphane
I mean for now, on sf1.4, there are no way to take away these settings. Even for dev, it's bad to have the prod: settings for database. Developers are not meant to be seen as "wrong people", but it can be. On sf2, .yml files are splitted into config_dev.yml, etc. I mean you could create a task s

Re: [symfony-users] Protect development credentials when deploying application

2011-03-01 Thread Alex Pilon
What do you mean there are none bundled with sf1.4? I mean in databases.yml for example, when you have dev: connection: # settings prod: connection: # settings A common security problem is credentials getting in the hands of the wrong person. So in effort to remove unneeded credenti

Re: [symfony-users] Protect development credentials when deploying application

2011-03-01 Thread Stéphane
There are none bundled with sf1.4. Anyway it's not that hard to code a task to remove every dev: in .yml files and dump content in .yml.dist or .prod. Needs to wrap this into a "release" process. Regards, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à

[symfony-users] Protect development credentials when deploying application

2011-03-01 Thread Alex Pilon
Hello, Is there a way (sf1.4) to only publish production settings (e.g., in databases.yml, app.yml, or settings.yml) when you deploy a symfony application? Thanks -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-pro

[symfony-users] Re: Update database schema

2011-03-01 Thread Gabriel Petchesi
Look into the migrations feature of your ORM of choice: Propel: http://www.propelorm.org/wiki/Documentation/1.6/Migrations Doctrine: http://www.doctrine-project.org/projects/orm/1.2/docs/manual/migrations/en This will automate the migration process in many common cases, you just have to run some

Re: [symfony-users] a total newie question

2011-03-01 Thread oscar balladares
Hehe, you fell into the Slides trick. I had that same feeling, but if you follow the tutorial you will reach to some point where you will see the expected results. If you look carefully, you will see the jobs indexes that also are links. If you hit the link you will be redirected to de "edit" act

Re: [symfony-users] Re: ERP development ( SF 1.4 or 2.0 ? )

2011-03-01 Thread Alex Pilon
All I can say in response to these types of questions is to look at the symfony-reloaded site: "Symfony2 is *not ready for production yet*. The final release is planned for *March 2011* and will support *PHP 5.3.2* and up. Use symfony 1.4 for your projects." You n

Re: [symfony-users] Re: ERP development ( SF 1.4 or 2.0 ? )

2011-03-01 Thread oscar balladares
Also there is no Admin generator :( ( I didnt like it much anyway hoho) In previous message, I meant: There are NOT good Examples or HowTo for Plugins. 2011/3/1 oscar balladares > Time will decide. > > If you have a DeadLine, you should stay with 1.4 > If not, (something like a year) you could

Re: [symfony-users] Re: ERP development ( SF 1.4 or 2.0 ? )

2011-03-01 Thread oscar balladares
Time will decide. If you have a DeadLine, you should stay with 1.4 If not, (something like a year) you could go with 2.0 I have little time (I mean days not hours) getting involved with 2.0 (about 4 or 5 hours a day) and at the end of this week I feel very confortable with it. You should know th

Re: [symfony-users] [Symfony 2]Validation on Form post: AssertsType like int, integer, decimal will always throw an error.

2011-03-01 Thread oscar balladares
Hi Gustavo and Bernhard. I'm still in troubles [?] Bernhard, I follow your advice; I've now used IntegerField, but its behavior is to trim any trailing .00 decimal. If I type 123.45 it will pass the validation (which is AssertType: integer ) and persist data as 123 I think, validation Forms shou

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-03-01 Thread Javier Garcia
Hi again.. I'm following the tutorial/snippet I mentioned before. I have followed it, but when the form is showed, it shows the word "Array" inside the autocompletion field. Any idea? On Mar 1, 5:22 pm, Javier Garcia wrote: > I just wanted to add taht in that snippet "tags_list" is not a casu

Re: [symfony-users] Re: ERP development ( SF 1.4 or 2.0 ? )

2011-03-01 Thread Michał Piotrowski
2011/3/1 Thor : > Are all sf 1.4 plugins already available in 2.0? Do you really need all sf 1.4 plugins? :) > if not, i'd think if i needed that For a large project you most likely want to write almost everything by yourself. Back to the topic. In December I started a large project and I decid

Re: [symfony-users] Re: doctrine dbal connection

2011-03-01 Thread Christophe COEVOET
Le 28/02/2011 16:08, Nico a écrit : On 27 Feb., 21:28, Christophe COEVOET wrote: Le 27/02/2011 01:01, igniteflow a crit :> I'm having the same issue. I'm using the sandbox and have been following thehttp://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html tutorial, but am getting

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-03-01 Thread Javier Garcia
I just wanted to add taht in that snippet "tags_list" is not a casual name, is the name of the field generated by symfony that shows the elements of the other side of the relation. In that way you will overwrite it. I'm missing a comment like that in the snippet. On Mar 1, 5:20 pm, Javier Garcia

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-03-01 Thread Javier Garcia
I found this snippet maybe will be usefull: http://snippets.symfony-project.org/snippets/from/antitoxic/order_by/popularity On Feb 28, 10:40 am, Javier Garcia wrote: > Alex, what do you mean with "It's maybe more along the lines of a > feature that > would be nice to have". Sorry because my engl

[symfony-users] Re: ERP development ( SF 1.4 or 2.0 ? )

2011-03-01 Thread Thor
Are all sf 1.4 plugins already available in 2.0? if not, i'd think if i needed that On Mar 1, 2:41 pm, Anderson Dadario wrote: > Thanks for your opinion ! I'll think seriously about it .. xD > > On 1 mar, 08:33, Gustavo Adrian wrote: > > > > > > > > > 2.0. No doubt about that (in my case). For a

[symfony-users] Re: Validations implemented using annotation validators for entities only run once, after doctrine:generate:entities

2011-03-01 Thread Costin
Found the culprit - eAccelerator... Disable it, guys :) On Mar 1, 11:35 am, Costin wrote: > I am using a class like the one below and a form checking code like > the following; > I am displaying a form containing the name field. > Upon submission, if doctrine:generate:entities has just been ran,

[symfony-users] Re: ERP development ( SF 1.4 or 2.0 ? )

2011-03-01 Thread Anderson Dadario
Thanks for your opinion ! I'll think seriously about it .. xD On 1 mar, 08:33, Gustavo Adrian wrote: > 2.0. No doubt about that (in my case). For a system like an ERP you need > flexibility. And that's one of the strenghts of Symfony 2.0. Doctrine 2.0 is > more robust too, with lots of features a

Re: [symfony-users] Update database schema

2011-03-01 Thread Gareth McCumskey
Edit your schema.ym as you need it then manually add the fields yourself to your existing database just as you defined it in your schema. There is no automatic way to do that with symfony. Besides, your data you should have now during development should be able to be repopulated through fixtur

Re: [symfony-users] Natural date parsing like Chronic

2011-03-01 Thread Gareth McCumskey
The closest would be strtotime: For example: date('Y-m-d', strtotime(date('Y-m-d').' + 2 days')); would give you 2011-03-03 date('Y-m-d',strtotime(date('Y-m-d').' - 2 days')); would give you 2011-02-27 etc On 01/03/2011 09:09, pbkyriak wrote: Hi all, last night I was checking out for new fa

Re: [symfony-users] Re: ChoiceField validation

2011-03-01 Thread Bernhard Schussek
2011/2/28 Brocco : > Did you have the time to look at it? I could confirm the erroneous behaviour, but the bug is not fixed yet. > Another question related to forms (I don't know if it's the right > place to ask): I can't find an easy way to get access to an uploaded > file from my request object

Re: [symfony-users] [Symfony 2]Validation on Form post: AssertsType like int, integer, decimal will always throw an error.

2011-03-01 Thread Bernhard Schussek
Hi Oscar, There is IntegerField for exactly that purpose. This field casts every input to an integer. I wouldn't recommend storing phone numbers as integers though. People may enter phone numbers with blanks in between which will result in a mess when converted. So instead I recommend to use a r

[symfony-users] Tests on request parameters

2011-03-01 Thread Christophe Beyer
Hi, Is it possible to check the get parameters ? In my case, I have a get parameter "page". In my controller : $request = $this->get('request'); $page = $request->query->get('page'); if (!$page) $page = 1; How can I : - check the type of this request parameter ? In this case, I want an integer

Re: [symfony-users] ERP development ( SF 1.4 or 2.0 ? )

2011-03-01 Thread Gustavo Adrian
2.0. No doubt about that (in my case). For a system like an ERP you need flexibility. And that's one of the strenghts of Symfony 2.0. Doctrine 2.0 is more robust too, with lots of features a big app needs, and being a data mapper instead of an active record gives you more freedom when you design yo

Re: [symfony-users] [Symfony 2]Validation on Form post: AssertsType like int, integer, decimal will always throw an error.

2011-03-01 Thread Gustavo Adrian
Yes, type casting a number string to integer will indeed throw away its decimal part if it has it. That's why it's a good idea to force the user to only enter integer numbers in the field. If you still receive a string with anything but integer numbers (because someone sent values not from your for

[symfony-users] [Symfony2]Validations implemented using annotation validators for entities only run once, after doctrine:generate:entities

2011-03-01 Thread Costin
I am using a class like the one below and a form checking code like the following; I am displaying a form containing the name field. Upon submission, if doctrine:generate:entities has just been ran, I get a corretc not blank error message. If I press submit again (and upon subsequent refreshes/subm

[symfony-users] Transitive Persistence

2011-03-01 Thread keymaster
I've searched the Symfony/Doctrine documentation, as well as this forum and Google, but was unable to find an answer. The Symfony manual says: "The ORM is smart enough to detect relationships between objects, so saving the $article object also saves the related $comment object. " How deep does th

[symfony-users] Re: doctrine dbal connection

2011-03-01 Thread Otávio
Hi everybody, I had the same problem when I try use doctrine:database:drop or doctrine:database:create. I clear the cache files and try this commands again and it works, the problem does not happen again. I hope it helps someone. Otávio. On 16 fev, 14:17, Nico wrote: > Hi everybody, > > I wo

[symfony-users] Update database schema

2011-03-01 Thread Laxmi
Hello, I already wrote the database model in config/doctrine/schema.yml I want to modify the table structure. what are the steps i need to do to modify my database with out losing data. Thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-proj

[symfony-users] a total newie question

2011-03-01 Thread Jorge
Hi folks, I'm taking my first steps with symfony following the jobeet tutorial under a WAMP system. everything fine till this: Day 3, and after php symfony doctrine:generate-module --with-show --non-verbose- templates frontend job JobeetJob I can display http://www.jobeet.com.localhost/fronte

[symfony-users] ERP development ( SF 1.4 or 2.0 ? )

2011-03-01 Thread Anderson Dadario
Hello .. I'm about to start a big system ( Enterprise Resource Planning ( ERP ) ) and i'm in doubt. Wich version should I pick ? 1.4.9 or 2.0 ? Thanks! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message becaus

[symfony-users] [Symfony2] password empty after login

2011-03-01 Thread Andras
Hi, After a successful form-based/Doctrine Entity Provider login I am trying to retrieve the encrypted password of the user by $password = this->get("security.context")->getUser()->getPassword(); $password is empty though I can see that it is not empty in the database. print_r($this->get('securi

[symfony-users] Natural date parsing like Chronic

2011-03-01 Thread pbkyriak
Hi all, last night I was checking out for new fancy staff, and i got onto a ruby gem called Chronic a natural date parsing lib. http://chronic.rubyforge.org/ eg "tomorrow" is 2011/3/2, or "next monday" is 2011/3/7!! extremely user friendly!! does anyone knows if there is something similar in php?

[symfony-users] Re: ChoiceField validation

2011-03-01 Thread Brocco
Hi! Sorry for the delay, I was away... On 21 fév, 12:48, Bernhard Schussek wrote: > -- > Software Architect & Engineer > Blog:http://webmozarts.com > Twitter:http://twitter.com/webmozart > > 2011/2/21 Brocco : > > > The problem is that in the array returned by getValues(), the > > validator doesn

[symfony-users] symfony jour 7

2011-03-01 Thread atef
Salut j'ai fini 7 jours de ce tutoriel (1,4 doctrine) et ça ne marche pas, je reçois un 404 erreur et le message "Impossible de trouver le JobeetCategory objet avec les paramètres suivants "array ('slug' => 'design',)").' dans mon journal. Quelqu'un peut-il m'aider? -- If you want to report a v

[symfony-users] Re: how to modify the css file to see the captcha image

2011-03-01 Thread rahhal mahassen
I want to know in which file should i add the css script. Can you please help me to solve this bug? 2011/2/28 rahhal mahassen > Hello, > I want to understand how the captcha work.My problem is how to see the > image of the captcha from my > site

[symfony-users] Re: doctrine dbal connection

2011-03-01 Thread Nico
On 27 Feb., 21:28, Christophe COEVOET wrote: > Le 27/02/2011 01:01, igniteflow a crit :> I'm having the same issue.  I'm > using the sandbox and have been > > following > > thehttp://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html > > tutorial, but am getting the > > > "doctrine.dba

[symfony-users] Executing some code before every action of every controller

2011-03-01 Thread elitalon
Hi, I am developing an application that has to record a log in the background for each action the user executes. I know Symfony comes with a preExecute callback, but I would have to define in in every controller. Is it possible to define it in some higher level in order to write the code once? I

[symfony-users] How to protect forms from the spam

2011-03-01 Thread rahhal mahassen
Hello, I want to protect my forms from spams.I saw this blogthat i think it's super. My problem is how to know that my forms willl never be attacked. Can any one explain to me into detai

Re: [symfony-users] Normal and ajax version for a template

2011-03-01 Thread Christophe Beyer
OK. Ticket created : http://trac.symfony-project.org/ticket/9558 -- Christophe Beyer cbe...@cap-tic.fr Le 27 févr. 2011 à 22:03, Christophe COEVOET a écrit : > Le 27/02/2011 21:56, Christophe Beyer a écrit : >> Ok, thanks ! >> >> It works fine in the controller, but the line "{% extends a

Re: [symfony-users] entity mapping of library class in OOPs paradigm

2011-03-01 Thread charanjeet kaur
got it. thanks :) Charanjeet Kaur --- On Tue, Mar 1, 2011 at 1:32 PM, Gareth McCumskey wrote: > Model classes are the place designed for it. If, however, you are > performing a distinct set of functionality create your own class that will > instead call simplified version of

Re: [symfony-users] entity mapping of library class in OOPs paradigm

2011-03-01 Thread Gareth McCumskey
Model classes are the place designed for it. If, however, you are performing a distinct set of functionality create your own class that will instead call simplified version of doctrine queries from it. Anything that runs the actual query should be in your model classes. There really is no probl