QuickStart Guide

39 views
Skip to first unread message

Matt Clarke

unread,
Apr 29, 2011, 5:38:56 PM4/29/11
to Outlet ORM
Hello,

I'm reading the quickstart guide. Please reference:


public function __construct () {
$this->bugs = new Collection();

I cannot find "Collection()" on the PHP website. What is
"Collection"? and why not use an array of objects?

Also, can you pass objects by reference - "&$obj" ?

Thanks
Matt

Luís Otávio

unread,
May 9, 2011, 9:36:56 PM5/9/11
to outle...@googlegroups.com
Hey Matt,
 
The Collection class is from Outlet... It has some features on it, and the OutletCollection extends the Collection class to do the lazy load job for one-to-many/many-to-many associations.
Yes, you can pass the objects by reference.
 
Cheers,
 
Luís


--
You received this message because you are subscribed to the Google Groups "Outlet ORM" group.
To post to this group, send email to outle...@googlegroups.com.
To unsubscribe from this group, send email to outlet-orm+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/outlet-orm?hl=en.


Robert Tomsick

unread,
May 9, 2011, 7:01:24 PM5/9/11
to outle...@googlegroups.com
On Fri, 2011-04-29 at 14:38 -0700, Matt Clarke wrote:
> Hello,
>
> I'm reading the quickstart guide. Please reference:
>
>
> public function __construct () {
> $this->bugs = new Collection();
>
> I cannot find "Collection()" on the PHP website. What is
> "Collection"? and why not use an array of objects?

Collection is a class included with Outlet.

-Rob

Reply all
Reply to author
Forward
0 new messages