Update sqlquery.md

adds missing datatype (i.e. Varchar) to the database field 'Name' of the Class 'Player'
This commit is contained in:
sanjay 2014-05-27 20:05:37 +05:30
parent 1c9f9551b6
commit b317fbabdd

View File

@ -126,7 +126,7 @@ An alternative approach would be a custom getter in the object definition.
:::php
class Player extends DataObject {
private static $db = array(
'Name' =>
'Name' => 'Varchar',
'Birthdate' => 'Date'
);
function getNameWithBirthyear() {