beginner's question

4 views
Skip to first unread message

Larry Zhao

unread,
Dec 18, 2009, 4:27:51 AM12/18/09
to outle...@googlegroups.com
Hi, guys, 

I just started to use outlet this day.

I have a directory structure like:

WebRoot
--- com
  | ---- XXX
     | --- domain
     | --- outlet
--- configs
  | --- outlet-config.php


I put all the entity classes in com/XXX/domain and outlet files in outlet. But even I put com/XXX/domain in the include_path of PHP, outlet still can't find my entity class, when creating proxies...

What should I do....


Thank you very much for helping. 


--
Regards.

Larry.Zhao

Alvaro Carrasco

unread,
Dec 18, 2009, 9:17:17 PM12/18/09
to outle...@googlegroups.com
Hi Larry,

Outlet doesn't include your entity classes automatically, you must
include them yourself before calling $outlet->createProxies().
You can either include them one at a time, or you can set up an
autoloader with spl_autoload.

Alvaro

> --
>
> 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.
>

Larry

unread,
Dec 22, 2009, 7:27:39 PM12/22/09
to Outlet ORM
Thank you very much Alvaro.

Regards.
Larry.

Reply all
Reply to author
Forward
0 new messages