[symfony-users] Re: How to do something after user is authorized

2011-04-07 Thread Azat
I need to update field lastLoginTime when user is logged in. How can I do this? Without redirect of course, is User model in Security Bundle support this? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

Re: [symfony-users] ajax chellanging question

2011-04-07 Thread Gareth McCumskey
http://jquery.com/ On Wed, Apr 6, 2011 at 9:59 PM, Jehan jeeha...@gmail.com wrote: Dear All I am using symfony 1.4. I want to show data in table format, with each record show a hyperlink. when click on link then that specific record edited using ajax. How to do it. -- If you want to

Re: [symfony-users] Re: How to do something after user is authorized

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 08:40, Azat a écrit : I need to update field lastLoginTime when user is logged in. How can I do this? Without redirect of course, is User model in Security Bundle support this? This can be done using the interactive_login event. Look at

Re: [symfony-users] ajax chellanging question

2011-04-07 Thread Jehan
I know it can be done by jquery but how. On Thu, Apr 7, 2011 at 11:59 AM, Gareth McCumskey gmccums...@gmail.comwrote: http://jquery.com/ On Wed, Apr 6, 2011 at 9:59 PM, Jehan jeeha...@gmail.com wrote: Dear All I am using symfony 1.4. I want to show data in table format, with each

Re: [symfony-users] ajax in symfony [error:javascript.php not found]

2011-04-07 Thread Gareth McCumskey
You should use Javascript yourself in the good old fashioned way, including all your own js files. You can use Javascript libraries as well like Jquery which makes things a lot simpler. On Wed, Apr 6, 2011 at 1:16 PM, Jehan jeeha...@gmail.com wrote: Dear all I want to use ajax functionality

Re: [symfony-users] ajax chellanging question

2011-04-07 Thread Gareth McCumskey
Using the ajax function inside JQuery. Your question is like asking How do I use PHP?. There is a lot you need to know and can't be described in a single message on the message lists. Read the site and learn how JQuery works and then learn how to use the ajax functions within JQuery. On Thu, Apr

[symfony-users] How to get the database password and login in symfony 1.4 ?

2011-04-07 Thread Manu
Hi all, I want to execute the command mysqldump, which requires the login and password of the database. How do I get those values in an action ? -- 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

[symfony-users] Re: String does not exist

2011-04-07 Thread Conrad
No I dont have that Class - the setProfileImageUrl method I was posting was auto-generated by doctrine using the old documentation /** @Field(type=String) */ I had.. Maybe that's why Doctrine thought of it as it would be a root-namespaced Class.. -- If you want to report a vulnerability issue

[symfony-users] Re: String does not exist

2011-04-07 Thread Conrad
I struggeld with the Boolean type yesterday evening with no success and gave up for yesterday... this morning - everything worked fine... I can register, login, logout, change everything the FOS user bundle provides.. maybe that Boolean thing was really something in the cache that I corrected

[symfony-users] Case problem with doctrine2, symfony2 and postgresql entities

2011-04-07 Thread umpirsky
Hi. I have a problem with doctrine2 in symfony2 app with postgres database. I get error: SQLSTATE[3F000]: Invalid schema name: 7 ERROR: schema main does not exist Problem is that my schema is Main not main. When I rename it, similar thing happends for table relation: SQLSTATE[42P01]:

[symfony-users] Symfony2 getOriginalName()

2011-04-07 Thread Кирилл Кокоша
Hello to all. Anybody knows why after PR8 in Symfony\Component\HttpFoundation\File was deleted function getOriginalName() -- 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

[symfony-users] [sf2] [PR10] String does not exist

2011-04-07 Thread Conrad
I just started with a project using the FOC UserBundle - after some issues I finally had the Login form under /login. But when I tried to login with a generated user I simply got an error saying *Invalid type specified String* * * Thats the dev.log entry for this unsuccessful login try (message

[symfony-users] Re: [PR10] String does not exist

2011-04-07 Thread Conrad
Thanks for your reply, yes I found something.. and it helped a bit :) doctrine also made a datatype out of it: /** * Set profileImageUrl * * @param String $profileImageUrl */ public function setProfileImageUrl(\String $profileImageUrl) {

[symfony-users] Serialisation including routing - where should this code go?

2011-04-07 Thread OnDistantShores
I'm used to using MVC where models can serialise themselves (into an array, which is easily JSON-able). I'm trying to build an API app where multiple views in multiple modules serialise the same object. I can easily add that code to the model, which works fine. However the problem arises when I

[symfony-users] Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread JeanChristophe
Hello All, I have just created the file: Acme.MyBundle.Entity.Users.php in: Acme/MyBundle/Resources/config/doctrine/metadata/orm witch contains: ?php namespace Acme\MyBundle\Entity; /** * @orm:Entity * @orm:Table(name=users) */ class User { /** * @orm:Id *

Re: [symfony-users] Symfony2 getOriginalName()

2011-04-07 Thread aurelijus
There is no real explanation I think. I was asking for this, but didn't get any answer. You can use getName() if you are not using Form for uploading file. And in case you are using it, you can getOriginalName from File field. -- Aurelijus Valeiša On Thu, Apr 7, 2011 at 8:32 AM, Кирилл Кокоша

[symfony-users] Re: How to get the database password and login in symfony 1.4 ?

2011-04-07 Thread Flukey
In sfDoctrinePlugin, you can look at the file: sfDoctrineConfigureDatabaseTask.class.php: protected function execute($arguments = array(), $options = array()) { // update databases.yml if (null !== $options['app']) { $file =

Re: [symfony-users] Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 11:37, JeanChristophe a écrit : Hello All, I have just created the file: Acme.MyBundle.Entity.Users.php in: Acme/MyBundle/Resources/config/doctrine/metadata/orm witch contains: ?php namespace Acme\MyBundle\Entity; /** * @orm:Entity * @orm:Table(name=users) */ class User

Re: [symfony-users] Re: String does not exist

2011-04-07 Thread Christophe COEVOET
Le 06/04/2011 19:53, Conrad a écrit : No I dont have that Class - the setProfileImageUrl method I was posting was auto-generated by doctrine using the old documentation /** @Field(type=String) */ I had.. Maybe that's why Doctrine thought of it as it would be a root-namespaced Class.. -- If you

Re: [symfony-users] Re: How to do something after user is authorized

2011-04-07 Thread Azat
And without this bundle? -- 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

Re: [symfony-users] Re: How to do something after user is authorized

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 12:09, Azat a écrit : And without this bundle? Implement your own listener on this event. The link was to show you an example on how to do this. -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] [symfony2] Accessing the Entity Manager from Entities

2011-04-07 Thread Michel
Hello, I'm trying to migrate an application to sf2 and I don't know how to solve the following problem: When showing an item (route like /item/show/{id}), I want to be able to directly go to previous and next items (according to sort order). In symfony1, I had 2 methods in the Item class that

Re: [symfony-users] [symfony2] Accessing the Entity Manager from Entities

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 12:17, Michel a écrit : Hello, I'm trying to migrate an application to sf2 and I don't know how to solve the following problem: When showing an item (route like /item/show/{id}), I want to be able to directly go to previous and next items (according to sort order). In symfony1,

[symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread JeanChristophe
@Christophe COEVOET: Thanks you very much. So, I have correctly placed my class in Entity dir, and with app/ console, Symfony2 have created the good associated class: Entity \User.php But, I have now another problem. I have write a little controller but when I execute the script, one error is

[symfony-users] Re: Changing the validator of an embedded form field

2011-04-07 Thread Javier Garcia
On Mar 27, 1:01 am, Javier Garcia tirengar...@gmail.com wrote: But.. why if paginas has a validator-pass? Well, I have learned the validatorPass doesn't mean it always passes validation...Now I have change my code but it neither works...This is my new code:

Re: [symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 13:48, JeanChristophe a écrit : @Christophe COEVOET: Thanks you very much. So, I have correctly placed my class in Entity dir, and with app/ console, Symfony2 have created the good associated class: Entity \User.php But, I have now another problem. I have write a little

Re: [symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 14:05, JeanChristophe a écrit : OK but how I can designed this mapping just for this unique class file User.php ? The documentation on Symfony about Doctrine is very little, and the Doctrine Documentation doesn't consider the Symfony2 context. Thanks a lot, JeanChristophe. The

[symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread JeanChristophe
OK but in my first post, I have already put annotations in my class. So what is the problem now ? - My class is correctly completed with annotations so mapped. - My database is correctly available, and tables are already successfully generated by Doctrine. - My Bundle configuration is OK. - My

Re: [symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 14:28, JeanChristophe a écrit : OK but in my first post, I have already put annotations in my class. So what is the problem now ? - My class is correctly completed with annotations so mapped. - My database is correctly available, and tables are already successfully generated by

Re: [symfony-users] Re: How to do something after user is authorized

2011-04-07 Thread Azat
Thanks. I will try! -- 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

[symfony-users] Re: [Symfony2] [Serializer] Missing functionnality in XmlEncoder ?

2011-04-07 Thread Joel Wurtz
Wrong group go here please = https://groups.google.com/forum/#!topic/symfony-devs/UVTmvjkN3M4 -- 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

Re: [symfony-users] Re: How to do something after user is authorized

2011-04-07 Thread Azat
Thanks a lot. It 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] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread weaverryan
Hey Jean- After all of the changes, what exactly do you have now (perhaps paste your User class again), and what is the error? Symfony's documentation coverage of Doctrine will be improved shortly - I want to make sure we address and correctly explain the process (so I want to see what your

[symfony-users] Re: Overriding Bundle Templates doesn't work

2011-04-07 Thread weaverryan
Hey guys- The correct docs link is here: http://symfony.com/doc/2.0/book/templating.html#overriding-bundle-templates There in fact *was* a bug in and around PR7 and PR8, though I don't know the exact versions. I've just pulled down the symfony-standard distribution and successfully overridden

[symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread JeanChristophe
OK. I give you all details with I have understand about the online documentation. 1) Create the bundle: php app/console init:bundle Acme\MyBundle src - The bundle AcmeMyBundle was created at src/Acme/MyBundle and is using the namespace Acme\MyBundle. - The bundle contains a sample controller,

[symfony-users] Re: Errors in Creating pages in Symfony 2 chapter of the book

2011-04-07 Thread weaverryan
Hey Mike- I was a little behind on the Trac tickets, but I closed all Symfony2 docs Trac tickets yesterday. Posting here, creating tickets and creating pull requests are all good options (pull requests are the best option) - I try to keep a pulse on everything. Thanks! On Apr 6, 11:42 am,

Re: [symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 15:31, JeanChristophe a écrit : 4) I create Entity directory in src/Acme/MyBundle I create the class Acme.MyBundle.Entity.User.php in this directory witch contains: The class file is User.php, not Acme.MyBundle.Entity.User.php ?php namespace Acme\MyBundle\Entity; 6) Generation:

[symfony-users] Re: [Symfony2] [Form] Data object property is still updated, even after associated Field is removed.

2011-04-07 Thread Donald
I'd be glad to check it out. Is there any documentation on how to migrate my code to function with this experimental branch? For example: I'm getting errors about form.context service not existing. On Apr 7, 7:39 am, Bernhard Schussek bschus...@gmail.com wrote: Hi Donald, Can you verify

[symfony-users] Re: Problem with Doctrine2 and Symfony2 PR10

2011-04-07 Thread JeanChristophe
Ok so how I can create a real class (i.e: with setPseudo() methods) from my mapping class (which was named Acme.MyBundle.Entity.User.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

[symfony-users] [Symfony2] [ODM] Best Practice SoftDelete

2011-04-07 Thread Conrad
Hi all, I was trying to integrate the Doctrine MongoDB Softdelete Extension to my (yet very simple test) application following briefly the instructions on the Readmehttps://github.com/doctrine/mongodb-odm-softdelete/blob/master/README.markdownand for the configuration on the Bundle

[symfony-users] plugins schema problems

2011-04-07 Thread DreadsnCo
Hi everybody, I use sfEasyCmsAdmin, and would like to add two new fields on my database. I change my class on :: lib/model/doctrine/sfEasyCmsPlugin/, lib/forml/doctrine/sfEasyCmsPlugin/, lib/filter/doctrine/sfEasyCmsPlugin/ Then I added new fields on sfEasyCmsPlugin schema.yml and clear

[symfony-users] Save untranslated Strings with the FrameworkBundle

2011-04-07 Thread Dennis Gädeke
Hi, i want to save untranslated strings to a database. Is there a way to extend the translation in the FrameworkBundle? Add a custom translator, a listener i can use or something else? Thanks, Dennis -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Symfony2 and MongoDB

2011-04-07 Thread Poida
Hi All, I hope I'm posting to the correct group! I am developing a new application based on: Symfony 2 PR9 w/ doctrine-mongodb and doctrine- mongodb-odm. I am using yaml annotations to generate my schema/ documents. As far as I can tell the application is working correctly and I am able to find

[symfony-users] [DIC] $container-set('foo', $barObject) does not exist in controller??

2011-04-07 Thread ericclemmons
I have a very simple bundle where I parse a config to store objects in the DIC... class MyGreatExtension extends Extension { public function load(Array $config, ContainerBuilder $container) { ... $container-set('my.great.collection', new ArrayCollection); //

[symfony-users] Re: Case problem with doctrine2, symfony2 and postgresql entities

2011-04-07 Thread cgb
replace main to public On 6 abr, 19:44, umpirsky umpir...@gmail.com wrote: Hi. I have a problem with doctrine2 in symfony2 app with postgres database. I get error:     SQLSTATE[3F000]: Invalid schema name: 7 ERROR: schema main does not exist Problem is that my schema is Main not main.

Re: [symfony-users] Re: [Symfony2] DoctrineExtensionsBundle - works with Doctrine 2.0.3 ?

2011-04-07 Thread seven seven
Here is the code I am using in my controller to insert the data : $group = new GroupPageEngine(); $group-setInternalName('HomePage'); $group-setTitle('HomePageT'); $em = $this-get('doctrine.orm.entity_manager'); $em-persist($group); $em-flush(); Anything wrong here ?

Re: [symfony-users] Save untranslated Strings with the FrameworkBundle

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 15:15, Dennis Gädeke a écrit : Hi, i want to save untranslated strings to a database. Is there a way to extend the translation in the FrameworkBundle? Add a custom translator, a listener i can use or something else? Thanks, Dennis Look at https://github.com/jfsimon/RosettaBundle

Re: [symfony-users] [DIC] $container-set('foo', $barObject) does not exist in controller??

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 17:54, ericclemmons a écrit : I have a very simple bundle where I parse a config to store objects in the DIC... class MyGreatExtension extends Extension { public function load(Array $config, ContainerBuilder $container) { ...

Re: [symfony-users] Re: [Symfony2] DoctrineExtensionsBundle - works with Doctrine 2.0.3 ?

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 18:01, seven seven a écrit : Here is the code I am using in my controller to insert the data : $group = new GroupPageEngine(); $group-setInternalName('HomePage'); $group-setTitle('HomePageT'); $em = $this-get('doctrine.orm.entity_manager');

[symfony-users] Re: Sphinx + Symfony 2

2011-04-07 Thread badllama77
Sorry for the late reply but what does using sphinx have to do with doctrine? Sphinx always returns document id's which if you want the related information you have to retrieve it from the db. -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] Re: [Symfony2] DoctrineExtensionsBundle - works with Doctrine 2.0.3 ?

2011-04-07 Thread seven seven
Here is what I have in my app/config/config.yml : doctrine: dbal: default_connection: default connections: default: driver: %database_driver% host: %database_host% dbname: %database_name% user:

[symfony-users] Symfony2 and Netbeans

2011-04-07 Thread JC
where did data/bin/symfony file go? It is required by NetBeans as part of the Symfony/Tools setup. It was there and assumed to be there by Netbeans in the 1.x version -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

Re: [symfony-users] Serialisation including routing - where should this code go?

2011-04-07 Thread Jeremiah Dodds
On Thu, Apr 7, 2011 at 4:36 AM, OnDistantShores cameron.r...@gmail.comwrote: I'm used to using MVC where models can serialise themselves (into an array, which is easily JSON-able). I'm trying to build an API app where multiple views in multiple modules serialise the same object. I can easily

Re: [symfony-users] Symfony2 and Netbeans

2011-04-07 Thread oscar balladares
As far as I know there is no support for S2 in Netbeans. The file you are liooking for is ~/app/console Regards. 2011/4/7 JC julio.castillo.2...@gmail.com where did data/bin/symfony file go? It is required by NetBeans as part of the Symfony/Tools setup. It was there and assumed to be there

Re: [symfony-users] Serialisation including routing - where should this code go?

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 10:36, OnDistantShores a écrit : I'm used to using MVC where models can serialise themselves (into an array, which is easily JSON-able). I'm trying to build an API app where multiple views in multiple modules serialise the same object. I can easily add that code to the model,

[symfony-users] [Symfony2] Problem with service on CLI commands

2011-04-07 Thread Gustavo Adrian
Hi all, I have a service which needs the request service as its first argument. So far, I've been using this since it's the only way I've found that works for me: service id=request synthetic=true / service id=my_own_service class=%my_own_service_class% argument type=service id=request /

[symfony-users] Interface hardware device

2011-04-07 Thread Srivatsa Prasad
Hi, I have a RFID R/W that will be plugged in at the client end, i need to R/W data into the RFID , i know browser cannot interact with the hardware device, any idea on how to take it further. -- Thanks Regards Srivatsa -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Which is the official Symfony2 users forum?

2011-04-07 Thread keymaster
Is it this google group, or http://forum.symfony-project.org/viewforum.php?f=23 Both seem to be fairly active. Would it make sense to consolidate into a single place? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] [New Forms] Override Widget Theme

2011-04-07 Thread ericclemmons
I was noticing the default themes here: https://github.com/bschussek/symfony/tree/experimental/src/Symfony/Bundle/TwigBundle/Resources/views If I specify a theme, where exactly do I need to place these files and do I use a simple name or a bundle path?

Re: [symfony-users] Symfony2 and Netbeans

2011-04-07 Thread Conrad
I'm working in Netbeans too for a couple of days in a sf2 project and it works very nice - but I didn't tell Netbeans that this is a Symfony project, just a regular PHP.. Autocomplete and all the nice dev stuff is also very good. Check out the Netbeans Twig Plugin (not stable or finished yet