_tableName_ = 'routes'; parent::__construct($fromArray); } static function model() { return new self(); } function getByAuthor($authorId) { return $this->getAll(array('where' => '`author` = ' . $authorId)); } }