Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-16 Thread badllama77
I recently posted an issue that may be related to this. When your using any of the doctrine tools that use the schema tool any custom types will fail. There isn't a call to registerDoctrineTypeMapping. So the type gets registered with the orm but not with the dbal. I changed the

[symfony-users] Re: [Symfony2] ReflectionException: Class Doctrine\Common\Annotations\FileCacheReader does not exist

2011-05-24 Thread badllama77
When you say master, are you pulling from git? If you are using the download, and copying in beware they vendors script is now vendors.php. I had an Annotation error and didn't realise that I had run the wrong vendor script. -- If you want to report a vulnerability issue on symfony,

Re: [symfony-users] Re: [SF2] Access Control Guidance

2011-05-20 Thread badllama77
I originally had the same issue, I was trying to figure out how to retrieve the user or objects linked using the acl. It can be done, messily, but after some quiet contemplation and some posting back and forth on here I determined not to do it. So I decided to try to only use the ACL when I

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

2011-05-19 Thread badllama77
There is a class scope. So the create would apply to 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

[symfony-users] Re: [SF2] Access Control Guidance

2011-05-18 Thread badllama77
I think you could filter the available pool of widgets/logs when you select. At the user level, where they can edit their logs, they would be owner of the entity in the acl. Any higher role bypasses the ownership check, or you could assign a user with these roles a class-scope permission.

[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

Re: [symfony-users] Re: Use two different database into the same controller

2011-05-12 Thread badllama77
ya since in either case, the beta1 or beta2 it is just a string. -- 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,

[symfony-users] Re: User management in Symfony 2

2011-05-12 Thread badllama77
I would have to point out that the available security system in Symfony 2 is really robust. Myself after looking through the available UserBundle then reviewing the security documentation implemented a system to register, authenticate and assign roles pretty quickly. -- If you want to

[symfony-users] Re: Use two different database into the same controller

2011-05-11 Thread badllama77
you can get an entity manager for a different defined entity by name $em = $this-get('doctrine')-getEntityManager('ppuerp'); see. http://symfony.com/doc/current/book/doctrine/orm.html#multiple-entity-managers -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] Re: Use two different database into the same controller

2011-05-11 Thread badllama77
Sorry my bad I missed the version you were using. $em = $this-get('doctrine.orm.ppuerp_entity_manager'); -- 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 2] Creating Custom Field Types

2011-05-10 Thread badllama77
Hi, Enjoying the new form classes. I was wondering if there was an ETA on Creating Custom Field Types cookbook? I created a class using the countrytype as a template, but I am wondering how to inform symfony it exists? Thanks -- If you want to report a vulnerability issue on symfony,

[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: How to retrieve related objects with ACL

2011-03-30 Thread badllama77
I would think that would work, and ironically the same logic could be used to do exactly what I wanted to do. I would consider reversing the logic though, and adding a block permission. That way it is exclusionary and lighter. The only advantage I can see to having a separate relationship at

Re: [symfony-users] Re: How to retrieve related objects with ACL

2011-03-30 Thread badllama77
@johannes: It is simple enough I have a record that can be related to one or more users who have X permissions. Since I am planning on using the ACL I was hoping to avoid creating a second redundant link between the record and the users. I think however for the time being I will take the

[symfony-users] Re: How to retrieve related objects with ACL

2011-03-29 Thread badllama77
I am guessing there is no easy solution? -- 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] How to retrieve related objects with ACL

2011-03-28 Thread badllama77
Ok so if you hand fine object permissions over the ACL (which is quite well done). I understand the process by which one can add permissions, check permissions. How does one retrieve the user's objects (i.e. get all the users comments)? Another example would be in a sales environment where

Re: [symfony-users] Security + Entity + Fixtures + Encoding How do I encode in fixture

2011-03-25 Thread badllama77
Thanks worked a treat :-) -- 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] Security + Entity + Fixtures + Encoding How do I encode in fixture

2011-03-24 Thread badllama77
Ok so the scenario is pretty simple, I want to create some dummy users using fixtures, I need to encode their passwords. How do I get the service container in the fixture class so I can get the encoder factory? -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] schema:create is not a valid entity or mapped super class

2011-03-24 Thread badllama77
Using doctrine:schema:create I get the following error. Class Vendor\LeadBundle\Entity\Lead is not a valid entity or mapped super class. users entity annotation in src/Vendor/UserBundle/Entity/User.php namespace Vendor\UserBundle\Entity; use Vendor\LeadBundle\Entity\Lead; use

[symfony-users] Re: schema:create is not a valid entity or mapped super class

2011-03-24 Thread badllama77
Forgot to include bundle in entity mappings. orm entity_managers: mappings: UserBundle: {type: annotation, dir: Entity/ } LeadBundle: {type: annotation, dir: Entity/ } -- If you want to report a vulnerability issue on symfony, please send it to security at