Re: [symfony-users] [symfony 2] conflict: annotation validation on a Doctrine Entity using annotation mapping

2010-07-15 Thread Tim Nagel
I've come across a similar problem, haven't had much time to try work it out on Symfony's end, however I have proposed a change to Doctrine\Common that would fix this - see my comment: http://www.doctrine-project.org/jira/browse/DCOM-11 http://www.doctrine-project.org/jira/browse/DCOM-11(When the

[symfony-users] [symfony2+doctrine2] Passing additional paths to the AnnotationReader

2010-07-17 Thread Tim Nagel
Hello, I wish to have a few different base (MappedSuperclass) Entities stored in my src/vendor/company directory, but at the moment it doesnt look like the DoctrineBundle package will process anything at that location for the Annotation Driver. Two questions: 1) Is it more appropiate to store

Re: [symfony-users] Doctrine.ORM Proxy

2010-08-12 Thread Tim Nagel
Sounds like you havent generated your Proxy objects based on the Entities. t On Thu, Aug 12, 2010 at 08:55, Michael excelwebz...@gmail.com wrote: Been trying to create a simple findAll() request: $users = $this-getEntityManager()

Re: [symfony-users] Re: motion : new mailling list for Synfony2

2010-09-03 Thread Tim Nagel
I set up a filter looking for (symfony2 OR symfony 2) and tag it that way, works well. t On Sat, Sep 4, 2010 at 00:44, samuel zoulil...@gmail.com wrote: ok, I use gmail so make a filter is not a big deal but most of the subject on symfony 2 haven't this tag in the subject. Maybe this thread

Re: [symfony-users] Re: Are the design of Symfony2 and Doctrine2 in right direction?

2010-09-13 Thread Tim Nagel
Doctrine2 does provide this flexibility, the only snag is that there is a PHP limitation on public properties (When using Proxies for partial loads, a public property will misbehave). Any mapped properties must be protected or private.

Re: [symfony-users] Re: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread Tim Nagel
I wouldnt be looking into the cache classes for methods to use - they're auto generated, and the format used may change. (Unlikely but possible) The method I use to get things, based on looking at other projects at symfony2bundles is $em = $this-container-get('doctrine.orm.entity_manager'); You

Re: [symfony-users] Official replacement for getParameter() in Symfony2PR3?

2010-09-20 Thread Tim Nagel
I've been using $this-container-get('request') to get the request object. t On Tue, Sep 21, 2010 at 11:29, Dennis Jacobfeuerborn djacobfeuerb...@gmail.com wrote: I'm trying to get the Form stuff working and while I'm reasonably successfull I'm not sure I'm doing things the right way. The

Re: [symfony-users] Re: Official replacement for getParameter() in Symfony2PR3?

2010-09-20 Thread Tim Nagel
djacobfeuerb...@gmail.com wrote: $this-container-get('XXX') and $this['XXX'] are apparently synonymous. The question is how to get the 'system' parameter if you are not supposed to use get() on the request object. On Sep 21, 3:32 am, Tim Nagel t...@nagel.com.au wrote: I've been using

Re: [symfony-users] Re: Symfony2PR3: Entity works fine in dev but throws exception in prod

2010-09-23 Thread Tim Nagel
I cant address points 2 or 3 because i do not use those functions, however regarding point 1, I just tested switching my index.php from dev to prod and it worked as expected without changes, reading my PHP annotations just fine. t But I just tested the enviroment switching dev to prod and it

Re: [symfony-users] [Symfony 2] Form, FileField and boundWithExtraFields error

2010-10-09 Thread Tim Nagel
Regarding the $_FILES issue, this is what I am using: $form-bind($this-container-get('request')-request-get($form-getName()), $this-container-get('request')-files-get($form-getName())); t On Sat, Oct 9, 2010 at 18:39, Bernhard Schussek bschus...@gmail.com wrote: Hi Gustavo, Can you show a

Re: [symfony-users] [Symfony 2] Form, FileField and boundWithExtraFields error

2010-10-09 Thread Tim Nagel
AM, Tim Nagel t...@nagel.com.au wrote: Regarding the $_FILES issue, this is what I am using: $form-bind($this-container-get('request')-request-get($form-getName()), $this-container-get('request')-files-get($form-getName())); t On Sat, Oct 9, 2010 at 18:39, Bernhard Schussek bschus

Re: [symfony-users] [Symfony 2] Form, FileField and boundWithExtraFields error

2010-10-09 Thread Tim Nagel
code. t On Sun, Oct 10, 2010 at 11:02, Gustavo Adrian comfortablynum...@gmail.comwrote: That's exactly what I was looking for. It works like a charm. Thank you very much! On Sat, Oct 9, 2010 at 7:38 PM, Tim Nagel t...@nagel.com.au wrote: You can call move() on the File/UploadedFile

Re: [symfony-users] Symfony2 - MongoDB extension not loadable?

2010-10-12 Thread Tim Nagel
Did you include the DoctrineMongo bundle in your kernel? t On Wed, Oct 13, 2010 at 04:58, Daniel Kucharski dan...@inspiran.be wrote: Hi, I get following error when trying to access the mongo document service in Symfony 2PR3: *There is no extension able to load the configuration for

Re: [symfony-users] [Symfony 2] Binding object and data without a form?

2010-11-21 Thread Tim Nagel
You still have to define each field in the form component that will be used to bind data to the object, there is no magic plumbing. t On Mon, Nov 22, 2010 at 09:30, Gustavo Adrian comfortablynum...@gmail.comwrote: I thought on separate the setting field by field from my first example to

Re: [symfony-users][symfony 2] Doctrine memory leaks?

2010-11-27 Thread Tim Nagel
Chunking the data and running the import over multiple passes. t On Fri, Nov 19, 2010 at 02:32, Carlos Silva in...@dicarsio.com wrote: Hi, I have been testing Symfony 2 (and Doctrine 2) and I've created a command to bulk insert data. I've found that in this test, PHP is eating ~ 175Mb

Re: [symfony-users] Re: Learning Symfony2 is difficult because...

2010-12-07 Thread Tim Nagel
They aren't the same - the Doctrine mapping data is different for each one, depending on what you configure with the bundle. Check out DoctrineUserBundle/Resources/config/doctrine/metadata t On Tue, Dec 7, 2010 at 21:45, Daniel Lohse annismcken...@googlemail.comwrote: They are the same

Re: [symfony-users] Autoload a 3rd party vendor class

2010-12-08 Thread Tim Nagel
Symfony2 uses namespaces, $api = new \MCAPI('key'); Or, add a use definition to the top of the file, use MCAPI; t On Thu, Dec 9, 2010 at 04:44, Scott Switzer sc...@switzer.org wrote: Hi - I am having an issue autoloading a 3rd party vendor class in Symfony2. The class is the Mailchimp

Re: [symfony-users] Re: [Doctrine2] Mapping issue that only occurs on my remote

2010-12-13 Thread Tim Nagel
There has been work ongoing to modify the mapping system and remove autodetection. https://github.com/fabpot/symfony/pull/264 http://groups.google.com/group/symfony-devs/browse_thread/thread/8a56914be2d5a322 t On Sat, Dec 11, 2010 at 20:59, ev0 dark.shr...@gmx.net wrote: Hey, I have

Re: [symfony-users] Re: autoloading

2010-12-14 Thread Tim Nagel
You need to install the intl module http://www.php.net/manual/en/intl.installation.php t 2010/12/15 Carlos Sánchez carloss...@gmail.com Hello I have this same problem, JF Simon answer does not help me (NEWBIE), bit more explicit pls!!!. Thanks in advanced. On Dec 7, 6:04 pm, JF Simon

Re: [symfony-users] PHP Intl extension

2010-12-21 Thread Tim Nagel
Does mamp come with pecl? # pecl install intl ? t On Wed, Dec 22, 2010 at 13:51, Michael excelwebz...@gmail.com wrote: One of the recent Symfony2 updates force to use the Intl extension.. I have a MAMP 1.9.4 with PHP 5.3.2. Does anyone knows how to add this extension? -- If you want to

Re: [symfony-users] [symfony2] FileField issue

2010-12-27 Thread Tim Nagel
You have to move the file into a proper location. I hit this issue too. I assume that the file upload component isnt finished yet, so on my file object (which contains $this-file for the path of the file) i have a move function: public function move($newPath, $uniqid = false) {

Re: [symfony-users] [Symfony2] Many questions (cache, Doctrine)

2011-01-02 Thread Tim Nagel
I'd also like to add that my impression of Doctrine 2 is that you should not be doing activities inside the entity that need the entity manager, that it is more 'appropriate' to the design patterns used that it occur elsewhere? t On Mon, Jan 3, 2011 at 04:30, Jordi Boggiano j.boggi...@seld.be

Re: [symfony-users] Re: PHP Intl extension

2011-01-03 Thread Tim Nagel
Turns out the pecl intl extension doesnt work with php 5.3, you'll need to compile PHP with intl. I had to install ICU4C on my mac to compile php with intl. t On Tue, Jan 4, 2011 at 10:10, Michael excelwebz...@gmail.com wrote: when i run the command it asks me: Specify where ICU libraries

Re: [symfony-users] Re: Symfony 2 tutorial on forms and Doctrine

2011-01-07 Thread Tim Nagel
Doctrine2 supports namespaces for elements, HelloBundle:User is valid. (: is the namespace separator) t On Sat, Jan 8, 2011 at 09:26, Tom Boutell t...@punkave.com wrote: http://docs.symfony-reloaded.org/guides/doctrine/orm/overview.html seems to be untested or perhaps based on something that

Re: [symfony-users] Re: [Symfony2] Security ACL: General questions

2011-03-30 Thread Tim Nagel
I've been working on an implementation too and what I've got that appears to be working reasonably well: https://github.com/merk/CommentBundle/blob/acl/Acl/SecurityThreadAcl.php#L96-- This is called from a command that will install the fallback Class ACE entry.

Re: [symfony-users] [Symfony2] How to use services for entity persisting

2011-04-04 Thread Tim Nagel
There is no way to force them to use your service. You'll just need to make sure they're aware of what they should be doing. You could potentially set the entity manager to private but I dont know if thats a good idea or not. Additionally, if you've got loads of developers who will end up doing

Re: [symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread Tim Nagel
The system still needs to know the path of the route, it doesnt need to direct to a controller: See FOS\UserBundle: https://github.com/FriendsOfSymfony/UserBundle/blob/master/Resources/config/routing/security.xml and

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

2011-04-08 Thread Tim Nagel
You shouldnt need to define the request id, not an expert on these issues, but I suspect it is a scope problem: https://github.com/FriendsOfSymfony/CommentBundle/blob/master/Resources/config/creator.xml t On Fri, Apr 8, 2011 at 12:21, Gustavo Adrian comfortablynum...@gmail.comwrote: Hi all,

Re: [symfony-users] Symfony2 ACL Performance Question

2011-04-14 Thread Tim Nagel
I'm working on editing and deletion functionality for CommentBundle at the moment. I expect to have something committed by the end of the weekend. t On Fri, Apr 15, 2011 at 03:53, Marc MacLeod marbe...@gmail.com wrote: Hi all, I'm not sure I understand how to effectively use the ACL

Re: [symfony-users] Re: Symfony2 ACL Performance Question

2011-04-15 Thread Tim Nagel
these systems would be extremely helpful as well, and are very applicable to a comment system. Btw I plan to use the comment bundle in one of my projects in the next month so looking forward to what you come up with. Regards, Marc On Apr 14, 6:19 pm, Tim Nagel t...@nagel.com.au wrote: I'm

Re: [symfony-users] Add additional column to many-to-many join table in Doctrine 2

2011-04-19 Thread Tim Nagel
To achieve this create a joining entity (UserGroup) and link it between the User and Group entities with One to Many and Many to One. It is no longer 'considered' a many to many according to doctrine, but a 1:m:1. User has many UserGroups Group has many UserGroups Then you can define what fields

Re: [symfony-users] Re: Symfony2 returning a JSON object

2011-04-26 Thread Tim Nagel
There is no response object 'on the go'. The controller action's responsibility is to create the response. t On Wed, Apr 27, 2011 at 07:59, stickaforkinme sebdang...@gmail.com wrote: Yeah worked that one out after posting on here... although prefered the old renderText method of sfActions in

Re: [symfony-users] [sf2] Creating ACL - Best practice ?

2011-05-02 Thread Tim Nagel
I've been working on a solution to this issue in FOS\CommentBundle, we've created object managers, and wrap those managers with AclManager instances that manage the Acl. https://github.com/FriendsOfSymfony/CommentBundle Entity\CommentManager is the usual ORM manager which deals with interaction

Re: [symfony-users] [Sf2] Comparison of fields in validation

2011-05-03 Thread Tim Nagel
I believe I spoke to you in the IRC channel, but the simplest method of achieving what you want is to define a method on your domain object: /** * @assert:True(message=Some time constraint is bad) */ public function isTimeValid() { return $this-time_a $this-time_b; } t On Tue, May 3, 2011

Re: Re : Re: [symfony-users] [sf2] Creating ACL - Best practice ?

2011-05-04 Thread Tim Nagel
I intend on working on a component for the CommentBundle to make it linear in the near future. I've got a few ideas on how to achieve it, be it replacing the Tree object with something else or using a Sorter to achieve it. Probably wont get to it for a while though. t On Wed, May 4, 2011 at

Re: [symfony-users] FOS/UserBundle too many redirect problem

2011-05-13 Thread Tim Nagel
Your login path must be accessable to anonymous users. - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/login_check$, role: IS_AUTHENTICATED_ANONYMOUSLY } # for the case of a failed login t On Sat, May 14, 2011 at 10:08, Zolzaya Erdenebaatar

Re: [symfony-users] FOS/UserBundle too many redirect problem

2011-05-13 Thread Tim Nagel
Sorry missed it - You must have security enabled for the login form as well (security:false is not suitable). t On Sat, May 14, 2011 at 10:20, Tim Nagel t...@nagel.com.au wrote: Your login path must be accessable to anonymous users.        - { path: ^/login$, role

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

2011-05-15 Thread Tim Nagel
They're talking about: http://php.net/manual/en/class.serializable.php Not the Serializer component in Symfony2. t On Mon, May 16, 2011 at 08:52, oscar balladares liebegr...@gmail.com wrote: I'm having this problem too. Core Devs suggest to implement Serializable interface. Symfony has

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

2011-05-19 Thread Tim Nagel
And that is what CommentBundle is using. t On Fri, May 20, 2011 at 01:05, badllama77 badllam...@gmail.com wrote: 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

Re: [symfony-users] Re: Symfony2 (Beta 1 ?!) and FOSUserBundle

2011-05-21 Thread Tim Nagel
I'm pretty sure that the mapping information location changed between beta1 and beta2, and UserBundle is developed alongside master symfony. You will need to upgrade UserBundle or check out a commit that happened before the change to the metadata move. t On Sat, May 21, 2011 at 00:24,

Re: [symfony-users] [SF2] Service Dependency Injection...Best Practice

2011-05-26 Thread Tim Nagel
It is bad practice. You would have to mock the container in tests and thats a big job. In short: dont do it :-) t On Thu, May 26, 2011 at 18:45, Kaipi Yann ydani...@gmail.com wrote: Hi, As you probably know, when declaring a service in your app you can pass all needed services as parameter

Re: [symfony-users] Code Organization with 3rd party bundles

2011-06-19 Thread Tim Nagel
The location of bundles changed in the beta process, it used to be /src, it is now /vendor/bundles t On Mon, Jun 20, 2011 at 14:25, Haulyn Jason saharab...@domix.in wrote: You must understand what is the third party, that means you want to use their libraries, you want to update your library

Re: [symfony-users] Code Organization with 3rd party bundles

2011-06-19 Thread Tim Nagel
Sorry, I should say the recommended location - it doesnt really matter to symfony2. t On Mon, Jun 20, 2011 at 14:50, Tim Nagel t...@nagel.com.au wrote: The location of bundles changed in the beta process, it used to be /src, it is now /vendor/bundles t On Mon, Jun 20, 2011 at 14:25

Re: [symfony-users] Separating the 3rd Party Bundles from Symfony2 SE to ease upgrades

2011-06-21 Thread Tim Nagel
I dont think there is any point. Using the bin/vendors script and the deps files, you can specify specific versions of the vendor repositories you wish to pull in. You can lock FOSUserBundle at a specific tagged release (once they start getting tagged), or follow HEAD if you desire. I dont see