mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3107 from micmania1/patch-1
CustomMember extends wrong class.
This commit is contained in:
commit
824c6067a2
@ -73,7 +73,7 @@ property on the class.
|
|||||||
:::php
|
:::php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class CustomMember extends Member {
|
class MyMemberExtension extends DataExtension {
|
||||||
|
|
||||||
public function alterFoo($foo) {
|
public function alterFoo($foo) {
|
||||||
// outputs the original class
|
// outputs the original class
|
||||||
@ -101,7 +101,7 @@ variables to update:
|
|||||||
:::php
|
:::php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class CustomMember extends DataExtension {
|
class MyMemberExtension extends DataExtension {
|
||||||
|
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'Position' => 'Varchar',
|
'Position' => 'Varchar',
|
||||||
@ -121,7 +121,7 @@ CMS fields for an object in an extension:
|
|||||||
:::php
|
:::php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class CustomMember extends DataExtension {
|
class MyMemberExtension extends DataExtension {
|
||||||
|
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'Position' => 'Varchar',
|
'Position' => 'Varchar',
|
||||||
|
Loading…
Reference in New Issue
Block a user