Merge pull request #3165 from sanjaymundhra/patch-9

Update sqlquery.md
This commit is contained in:
Damian Mooyman 2014-05-29 08:23:53 +12:00
commit fda91b7f8c

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() {