-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12719 from dreamsxin/12715
Fix bug #12715
- Loading branch information
Showing
4 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
class Robots2 extends Phalcon\Mvc\Model | ||
{ | ||
protected $myname; | ||
|
||
public function getSource() { | ||
return 'robots'; | ||
} | ||
|
||
public function getName() { | ||
return $this->myname; | ||
} | ||
|
||
public function columnMap() { | ||
return array( | ||
'id' => 'id', | ||
'name' => 'myname', | ||
'type' => 'type', | ||
'year' => 'year', | ||
'datetime' => 'datetime', | ||
'deleted' => 'deleted', | ||
'text' => 'text', | ||
); | ||
} | ||
} |