Version: current

     1 <?php
     2 /**
     3  * Poll Answer DataObject
     4  *
     5  * @package polls
     6  */
     7 class PollAnswer extends DataObject {
     8
     9     static $db = Array(
    10         'Answer' => 'Text',
    11         'Votes' => 'Int'
    12     );
    13
    14     static $has_one = Array(
    15         'Poll' => 'Poll'
    16     );
    17
    18     static $summary_fields=array (
    19         'Answer'=>'Answer',
    20         'Votes'=>'Votes'
    21     );
    22
    23 }
    24
    25 ?>

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -