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

2011-05-17 Thread Tim Nagel
You use a class OID. See CommentBundle's Acl implementation: https://github.com/FriendsOfSymfony/CommentBundle/blob/master/Acl/SecurityCommentAcl.php t On Wed, May 18, 2011 at 16:01, realmfoo wrote: > On 17 май, 23:12, Carl wrote: >> I think roles would make more sense when it comes to accom

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

2011-05-17 Thread realmfoo
On 17 май, 23:12, Carl wrote: > I think roles would make more sense when it comes to accomplishing what you > want to do here. After the object has been created and the ACL has been > updated, then you can check to see if the user has permission to view the > object. Then why do we have permissio

[symfony-users] Symfony Developer required at Zigron-Islamabad office

2011-05-17 Thread Fahad Khalid
Job Description: We are looking for people who are interested in developing their career with us. Successful candidates should enjoy working in a well- managed team environment have the enthusiasm and ambition to complete projects to the highest standard and want to be part of an organization that

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

2011-05-17 Thread realmfoo
+1 -- 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 fro

[symfony-users] Re: DoctrineMongoDBBundle missing in Beta1?

2011-05-17 Thread Andras
Now that Doctrine 2.1 Beta has been released can we use the MongoDB bundle with Symfony 2.0 if we update as described here? Andras On máj. 11, 08:46, jarod wrote: > I found this very help to me on how tomongodbin symfony2Beta1 > > http://forum.symfony-project.org/viewtopic.php?t=35156&p=117640 >

[symfony-users] [FOS/RestBundle] parent & other non standard routing keys

2011-05-17 Thread Donald Tyler
I'm trying to define a parent for a Rest controller, but I'm getting the following error: [InvalidArgumentException] Yaml routing loader does not support given key: "parent". Expected one of the (type, resource, prefix, pattern, options, defaults, requirements). I've defined the route as describ

Re: [symfony-users] Testing Symfony2 Doctrine2 Entities against Database

2011-05-17 Thread Marco Pivetta
You should look at Doctrine\Common\Annotations\AnnotationReader#setAnnotationNamespaceAlias($namespace, $alias) That should do the job if you set $namespace = 'orm' and $alias = 'Doctrine\ORM\Mapping' Give it a try :) Marco Pivetta @Ocramius http://marco-pivetta.com

Re: [symfony-users] I can't use entity's annotation mapping with entity_managers.

2011-05-17 Thread Christophe COEVOET
Le 16/05/2011 23:47, Gaku Furukawa a écrit : Hi there, I used Symfony2 and Doctrine2. But I can't use entity's annotation mapping with entity_managers. could you help me ? ・config.ym. --- doctrine: orm: default_entity_manager: default entity_managers: defau

Re: [symfony-users] Migrating an old Symfony project

2011-05-17 Thread Esdras Beleza
Yes, I'm sure I cleared cache using $ php symfony cc . I already tried to uninstall sfLucenePlugin: $ php symfony plugin:uninstall sfLucenePlugin >> pluginuninstalling plugin "sfLucenePlugin" >> sfSymfonyPluginManager Plugin "sfLucenePlugin" is not installed It says that sfLucenePlugin is no

[symfony-users] [symfony2] How to handle Assets the right way?

2011-05-17 Thread Alexander Haas
As far as I did read into the topic the sane way to do assets is: Use Assetic for css and js files. Use the ../MyBundle/Resource/public directory for image files and other static resources. Assetic is configured for an application. Built in assets are used in a bundle-scope. As symbols in css an

[symfony-users] Testing Symfony2 Doctrine2 Entities against Database

2011-05-17 Thread defrag
Hello, im trying to get doctrine2 tests work against database, but without success. Ive tried approach with creating entity manager: class UserTest extends \PHPUnit_Framework_TestCase { private $em = null; public function setUp() { $config = new \D

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

2011-05-17 Thread matteosister
https://github.com/symfony/symfony/issues/974 Here it is! Many thanks in advance. On 16 Mag, 21:36, Kris Wallsmith wrote: > I’m aware of this issue, although there isn’t a ticket for it right now. > Please create an issue on the Symfony2 > tracker:https://github.com/symfony/symfony/issues > >

[symfony-users] Export files???

2011-05-17 Thread dashiell garcia martinez
I need to export the data that i obtain after to realize a search of information, this data or information are shown to me in a form ... now my question is ..exist a plugin or a method to do this i need export the data in XML ; :DOC or PDF anyone of these formats... please if anyone have a solution

[symfony-users] I can't use entity's annotation mapping with entity_managers.

2011-05-17 Thread Gaku Furukawa
Hi there, I used Symfony2 and Doctrine2. But I can't use entity's annotation mapping with entity_managers. could you help me ? ・config.ym. --- doctrine: orm: default_entity_manager: default entity_managers: default: connection: default

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

2011-05-17 Thread Carl
I think isGranted() requires that there be an entry for the object in the database for it to work properly. Otherwise how would it know whether someone has the right permissions to access the object? I'm pretty sure that what you have there will always fail since there isn't an entry in the dat

[symfony-users] [Symfony 2] REST Batch

2011-05-17 Thread Donald Tyler
Does anyone know if it's possible to do REST batch actions via HTTP pipelining when using Symfony 2? -- 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

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

2011-05-17 Thread Georg
+1 Am 16.05.2011 19:15, schrieb 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

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

2011-05-17 Thread Gustavo Adrian
+1 for splitting mailing lists. If someone wants to see Symfony 1 and 2 messages, he/she could just join both groups. I don't really like forums so I don't have an opinion about that. I don't really mind if there's a forum or not. Having these mailing lists is really enough for me, so splitting thi

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

2011-05-17 Thread Donald Tyler
+1 I would be happy with either different mailing lists, or shutting these down in favor of the forums. But it's definitely not working the way it is now. I do agree that forums will see less traffic though. I think "splitting the community" can also be seen as "organizing the community" or "hel

Re: [symfony-users] [FOS/RestBundle] default _format for routes

2011-05-17 Thread Donald Tyler
That worked, Thanks! On Tue, May 17, 2011 at 11:36 AM, Christophe COEVOET wrote: > Le 17/05/2011 18:32, Donald Tyler a écrit : > > I added the following to my action, and it made no difference. I still get >> the same error message. >> >> @extra:Route(defaults={"_format"="html"}) >> >> Any idea

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

2011-05-17 Thread ScaNNeR
+1 Agreed. It is better to have a separate grid for the product. Forums are much less convenient. Mailing list easier. -- 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

Re: [symfony-users] [FOS/RestBundle] default _format for routes

2011-05-17 Thread Christophe COEVOET
Le 17/05/2011 18:32, Donald Tyler a écrit : I added the following to my action, and it made no difference. I still get the same error message. @extra:Route(defaults={"_format"="html"}) Any ideas why this might not work? When using RestBundle, the prefix for the annotations is rest, not extra

Re: [symfony-users] [FOS/RestBundle] default _format for routes

2011-05-17 Thread Donald Tyler
I added the following to my action, and it made no difference. I still get the same error message. @extra:Route(defaults={"_format"="html"}) Any ideas why this might not work? On Thu, May 12, 2011 at 2:56 PM, Christophe COEVOET wrote: > Le 12/05/2011 21:43, Donald Tyler a écrit : > > Is it cu

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

2011-05-17 Thread badllama77
I am thinking that this is from the assetic bundle which uses yui compressor. You could probably disable assetic, or change your open_basedir setting. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message becaus

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

2011-05-17 Thread JP
Thanks! It really help me! Regards, JP -- 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-user

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

2011-05-17 Thread Jeremiah Dodds
On Tue, May 17, 2011 at 2:45 AM, Gareth McCumskey wrote: > I don't think this is a good idea. I often have a few minutes spare in my > busy day and can quickly browse my inbox to see if there are any people I > can help. Pushing everything to the forums will mean less people that can > just quickl

[symfony-users] [v2.0.0BETA1] Array data and validation with Forms

2011-05-17 Thread dbenjamin
Hi, I saw a commit adding a way to specify the form constraint on the fly : http://goo.gl/begfs In the commit i see also a new attribute : >setAttribute('validation_constraint', $options['validation_constraint']) And that's what i'm interested in. My form Type is defined as a service, and i wo

[symfony-users] Re: Symfony 1.4 - reflexive relation with doctrine generates DELETE query

2011-05-17 Thread Mikael
Hello, Found out it by myself (well, I got it working) I did not use the relation "Parent" by its name, but by the class name (->getEnseignement). I added a "Child" relation to be able to navigate on "each" side, adapted the getters in the code and voila... Mikael On 17 mai, 13:55, Mikael wr

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

2011-05-17 Thread seven seven
Hi again, Pretty please ...!!!.. An advice will be welcome ! I am trying to fix/understand all that I can before moving forward with SF2. Thanks in advance ! On Mon, May 16, 2011 at 12:34 PM, seven seven wrote: > Hi all, > > I will get to the point very fast... :P. In the past I did had few

[symfony-users] Symfony 1.4 - reflexive relation with doctrine generates DELETE query

2011-05-17 Thread Mikael
Hello, I have a strange behavior when I save a Doctrine form based on this model : Enseignement: columns: code: { type: varchar } nom: { type: varchar } valide: { type: boolean, default: false, notnull: true } parent_id: { type: integer } relations: Parent: {class: Enseign

[symfony-users] Custom Doctrine ODM Mapping Types

2011-05-17 Thread Conrad
Hi all, I would like to know if it is possible to add custom doctrine ODM Mappings to the project. In my case, I'm having some arrays that I would like to handle with the Doctrine ArrayCollection instance. I also build a Tags class that extends it with some special features, but I can't use thi

Re: [symfony-users] working slider/spin widget for integers ?

2011-05-17 Thread Gareth McCumskey
Sliders and spinners are not elements built into HTML, therefore you need to look at external libraries (or build it yourself). The one I can recommend is JQuery UI. Others may have other recommendations. On Mon, May 16, 2011 at 11:47 AM, niksfirefly wrote: > Do you know working slider/spin widge

Re: [symfony-users] Migrating an old Symfony project

2011-05-17 Thread Gareth McCumskey
Did you make sure you had cleared cache (on command line from project root enter command ./symfony cc). Often when symfony cannot find classes its because its not cached any longer. On Fri, May 13, 2011 at 9:38 PM, Esdras Beleza wrote: > Hi folks, > > I work with PHP for some years, but I'm new t

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

2011-05-17 Thread Stephan Petzl
Please, please, please :) Symfony and symfony are two completely different things- therefor there will be two different communities in forseable future anyhow. so why sharing mailinglists? BR Stephan On May 17, 8:42 am, Fabien Potencier wrote: > On 5/16/11 7:15 PM, keymaster wrote: > > > > > > >

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

2011-05-17 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i am also afraid that the forums could have less replies. unless people are so kind as to subscribe to get emails for the areas they are interested in, and take the pain to go to the forum to type an answer. on the other hand, this list sees more traf