Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Ability to return extended PropelObjectCollection from query?

Received: by 10.42.62.19 with SMTP id w19mr8086214ich.4.1350548312873;
        Thu, 18 Oct 2012 01:18:32 -0700 (PDT)
X-BeenThere: propel-development@googlegroups.com
Received: by 10.50.189.161 with SMTP id gj1ls634865igc.3.gmail; Thu, 18 Oct
 2012 01:18:32 -0700 (PDT)
Received: by 10.43.131.7 with SMTP id ho7mr9218974icc.5.1350548312188;
        Thu, 18 Oct 2012 01:18:32 -0700 (PDT)
Received: by 10.50.57.13 with SMTP id e13msigq;
        Thu, 18 Oct 2012 00:41:41 -0700 (PDT)
Received: by 10.68.130.231 with SMTP id oh7mr3172076pbb.5.1350546101086;
        Thu, 18 Oct 2012 00:41:41 -0700 (PDT)
Date: Thu, 18 Oct 2012 00:41:40 -0700 (PDT)
From: Lee Leathers <leeleath...@gmail.com>
To: propel-development@googlegroups.com
Message-Id: <5be66c62-4fd6-44e0-973f-5a45833a7731@googlegroups.com>
Subject: Ability to return extended PropelObjectCollection from query?
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1429_29586405.1350546100541"

------=_Part_1429_29586405.1350546100541
Content-Type: multipart/alternative; 
	boundary="----=_Part_1430_15584672.1350546100541"

------=_Part_1430_15584672.1350546100541
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Is there a way to return an extended class of PropelObjectCollection unique 
to the base class instead of the PropelObjectCollection default?

Quick Usages:
$invoices = InvoiceQuery::create()->find();

# custom method from InvoiceObjectCollection
echo $invoices->sumAmount();

# gist of InvoiceObjectCollection
https://gist.github.com/3910303


Can Propel be told to do this explicitly or implicitly from introspection 
of the lib/model/collection/ folder?

If there isn't a way to do this, would anyone be interested in me whipping 
something up and submitting a pull request on master?

- Lee

------=_Part_1430_15584672.1350546100541
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

Is there a way to return an extended class of&nbsp;PropelObjectCollection unique to the base class instead of the&nbsp;PropelObjectCollection default?<div><br></div><div>Quick Usages:</div><div>$invoices = InvoiceQuery::create()-&gt;find();</div><div><br></div><div># custom method from InvoiceObjectCollection</div><div>echo $invoices-&gt;sumAmount();</div><div><br></div><div># gist of InvoiceObjectCollection</div><div>https://gist.github.com/3910303<br></div><div><br></div><div><br></div><div>Can Propel be told to do this&nbsp;explicitly&nbsp;or&nbsp;implicitly&nbsp;from introspection of the&nbsp;lib/model/collection/ folder?</div><div><br></div><div>If there isn't a way to do this, would anyone be interested in me whipping something up and submitting a pull request on master?</div><div><br></div><div>- Lee</div>
------=_Part_1430_15584672.1350546100541--

------=_Part_1429_29586405.1350546100541--