Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-08-02 Thread Alejandro Imass
On Thu, Jul 28, 2011 at 3:22 PM, Alejandro Imass alejandro.im...@gmail.com wrote: On Wed, Jul 20, 2011 at 12:50 PM, Peter Flanigan p...@roxsoft.co.uk wrote: On 20/07/11 07:25, Alejandro Imass wrote: [...] I updated the Perlmonks article and the code in SVN to reflect this fix.

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-08-02 Thread Darius Jokilehto
On 20/07/11 15:00, Alejandro Imass wrote: The Catalyst Wiki seems to be having some problems so i posted it on PM as well: http://www.perlmonks.org/?node_id=915657 In your first example, $c-model('Models::People')-all() and $c-model('Models')-schema-resultset('People'); are not

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-08-02 Thread Darius Jokilehto
On 02/08/11 11:45, Darius Jokilehto wrote: are not (necessarily) equivalent. The former always returns an array, the latter only in array context. Oops, *list* context NET-A-PORTER.COM Irresistible fashion at your fingertips

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-08-02 Thread Alejandro Imass
On Tue, Aug 2, 2011 at 6:45 AM, Darius Jokilehto darius.jokile...@net-a-porter.com wrote: On 20/07/11 15:00, Alejandro Imass wrote: The Catalyst Wiki seems to be having some problems so i posted it on PM as well: http://www.perlmonks.org/?node_id=915657 In your first example,  

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-07-28 Thread Alejandro Imass
On Fri, Jul 22, 2011 at 11:46 AM, Benjamin Hitz h...@stanford.edu wrote: Alejandro - thanks for this, it's quite clear I had forgotten that I asked for it even. Ben Yeah I had this pending because I think it's very frustrating for many people that, even by buying commercial Catalyst

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-07-28 Thread Alejandro Imass
On Wed, Jul 20, 2011 at 12:50 PM, Peter Flanigan p...@roxsoft.co.uk wrote: On 20/07/11 07:25, Alejandro Imass wrote: http://wiki.catalystframework.org/wiki/best_practices/models_definitive_guide In this example    package Models::Model::HomeGrownModel;    use base 'Catalyst::Model';    

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-07-20 Thread Alejandro Imass
On Wed, Jul 20, 2011 at 2:25 AM, Alejandro Imass alejandro.im...@gmail.com wrote: On Thu, May 19, 2011 at 7:06 PM, Benjamin Hitz h...@stanford.edu wrote: [...] I tried to make it as practical as possible: http://wiki.catalystframework.org/wiki/best_practices/models_definitive_guide Maybe

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-07-20 Thread Ashley Pond V
On Wed, Jul 20, 2011 at 7:00 AM, Alejandro Imass alejandro.im...@gmail.com wrote: On Wed, Jul 20, 2011 at 2:25 AM, Alejandro Imass alejandro.im...@gmail.com wrote: On Thu, May 19, 2011 at 7:06 PM, Benjamin Hitz h...@stanford.edu wrote: [...] I tried to make it as practical as possible:

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-07-20 Thread Peter Flanigan
On 20/07/11 07:25, Alejandro Imass wrote: http://wiki.catalystframework.org/wiki/best_practices/models_definitive_guide In this example package Models::Model::HomeGrownModel; use base 'Catalyst::Model'; use HomeGrown; sub COMPONENT { my ( $self, $app ) = @_;

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-05-18 Thread Alejandro Imass
On Wed, May 18, 2011 at 1:42 AM, Octavian Rasnita octavian.rasn...@ssifbroker.ro wrote: From: Alejandro Imass alejandro.im...@gmail.com 3) It is written somewhere (I couldn't find it before writing this but I know is in the POD somewhere) that it is not a good idea to pass the complete $c