From cc09e963e8ef7ea093c7b13096856e5c732cd776 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 15 Mar 2016 22:06:47 +0100 Subject: * extending TActiveRecord so it's capable of fetching mapped column fields from sql maps --- app/php/model/Calendar.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'app/php/model/Calendar.php') diff --git a/app/php/model/Calendar.php b/app/php/model/Calendar.php index 4438572..9e1afce 100644 --- a/app/php/model/Calendar.php +++ b/app/php/model/Calendar.php @@ -1,12 +1,13 @@ 'Website', 'visible' => 'Visible', 'last_updated' => 'LastUpdated', - '_category' => 'CategoryID' + '_category' => 'CategoryID' ]; public static $RELATIONS = [ 'Entries' => [self::HAS_MANY, 'Entry', '_calendar'], 'Category' => [self::BELONGS_TO, 'Category', '_category'] ]; - + public static function finder($className=__CLASS__) { return parent::finder($className); } - + } ?> -- cgit v1.2.3