mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Update sqlquery.md
adds missing datatype (i.e. Varchar) to the database field 'Name' of the Class 'Player'
This commit is contained in:
parent
1c9f9551b6
commit
b317fbabdd
@ -126,7 +126,7 @@ An alternative approach would be a custom getter in the object definition.
|
|||||||
:::php
|
:::php
|
||||||
class Player extends DataObject {
|
class Player extends DataObject {
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'Name' =>
|
'Name' => 'Varchar',
|
||||||
'Birthdate' => 'Date'
|
'Birthdate' => 'Date'
|
||||||
);
|
);
|
||||||
function getNameWithBirthyear() {
|
function getNameWithBirthyear() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user