Re: [symfony-users] Re: Service Container's Service "Scope"

2011-03-17 Thread Hany El-Kerdany
, so they have no priority >>>> atm. >>>> >>>> While the "fix" that Gustavo posted virtually disables all scope sanity >>>> checks, it should be avoided at all cost; you'll only create problems for >>>> yourself if you go do

Re: [symfony-users] Re: Service Container's Service "Scope"

2011-03-17 Thread Hany El-Kerdany
hen I can inject the request in my services. > > > > > > On 15 mar, 22:41, Hany El-Kerdany wrote: > > Hi All, > > > > I tried to abuse the service container a little, and use it to inject > core > > container services (like the request) object int

Re: [symfony-users] [Symfony2] Services scoping question

2011-03-16 Thread Hany El-Kerdany
Hi all, I have a similar question here: http://groups.google.com/group/symfony-users/browse_thread/thread/54f3c35dfe5bba4c/291cbfd5a26275ec?show_docid=291cbfd5a26275ec

[symfony-users] Service Container's Service "Scope"

2011-03-15 Thread Hany El-Kerdany
Hi All, I tried to abuse the service container a little, and use it to inject core container services (like the request) object into my controllers (that are implemented as services) as well. This is to avoid having to extend the Controller class, or implement the ContainerAware interface. Howeve

Re: [symfony-users] Controller naming format (confusing)

2011-03-11 Thread Hany El-Kerdany
Thanks Fabien, I just read through the Bundles chapter now, and it makes sense now. On Thu, Mar 10, 2011 at 21:12, Fabien Potencier < fabien.potenc...@symfony-project.com> wrote: > On 3/10/11 7:39 PM, Hany El-Kerdany wrote: > >> Dear All, >> >> I was reading in t

[symfony-users] Controller naming format (confusing)

2011-03-10 Thread Hany El-Kerdany
Dear All, I was reading in the Symfony2 book, specifically the controller naming format in the Routing chapter, and the following question keeps jumping in my head. The documentation mentions: The routing path: *SensioBlogBundle:Blog:show* Means that the following PHP method will be executed: * S

[symfony-users] Multiple "CREATE TABLE" when generating SQL from a Doctrine model using Inheritance

2010-11-16 Thread Hany El-Kerdany
Dear All, I'm using inheritance in my Doctrine model (column_aggregation). When I generate the SQL from Models (using symfony's doctrine:generate --all), I find that there's a redundant CREATE TABLE statement (all for the same table, since I'm using column_aggregation).. This seems like a bug to m