mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
CustomMember extends wrong class.
CustomMember was extending the wrong class to be able to reference $this->owner. Also, changed CustomMember to MyMemberExtension to remain consistent with the initial example.
This commit is contained in:
parent
5a69cf67ff
commit
9e66db4fe1
@ -73,7 +73,7 @@ property on the class.
|
||||
:::php
|
||||
<?php
|
||||
|
||||
class CustomMember extends Member {
|
||||
class MyMemberExtension extends DataExtension {
|
||||
|
||||
public function alterFoo($foo) {
|
||||
// outputs the original class
|
||||
@ -101,7 +101,7 @@ variables to update:
|
||||
:::php
|
||||
<?php
|
||||
|
||||
class CustomMember extends DataExtension {
|
||||
class MyMemberExtension extends DataExtension {
|
||||
|
||||
private static $db = array(
|
||||
'Position' => 'Varchar',
|
||||
@ -121,7 +121,7 @@ CMS fields for an object in an extension:
|
||||
:::php
|
||||
<?php
|
||||
|
||||
class CustomMember extends DataExtension {
|
||||
class MyMemberExtension extends DataExtension {
|
||||
|
||||
private static $db = array(
|
||||
'Position' => 'Varchar',
|
||||
|
Loading…
Reference in New Issue
Block a user