3069 Posts in 868 Topics by 650 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 640 Views |
-
Decorating Member class

26 February 2011 at 5:54pm
When you're decorating the Member class with your own stuff, do you need to refer to the new member class from then on or can you continue using 'Member'?
For example, suppose I have a Photo object and each Photo is owned by a member. Do I need to do this:
public static $has_one = array(
'Member' => 'MyMember'
);or would this still work:
public static $has_one = array(
'Member' => 'Member'
);I feel rather silly for asking this but I haven't decorated the Member class much in the past.
-
Re: Decorating Member class

26 February 2011 at 9:49pm
You can still refer to it as a Member. Decorators are transparent.
| 640 Views | ||
|
Page:
1
|
Go to Top |


