Advertisement
Guest User

Untitled

a guest
Dec 1st, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. <?php
  2. namespace App\Model\Entity;
  3.  
  4. use Cake\ORM\Entity;
  5.  
  6. use SoftDelete\Model\Entity\SoftDeleteTrait;
  7.  
  8. /**
  9.  * Quiz Entity.
  10.  *
  11.  * @property int $id
  12.  * @property string $title
  13.  * @property int $course_id
  14.  * @property \App\Model\Entity\Course $course
  15.  * @property int $timelimit
  16.  * @property \App\Model\Entity\Quizkey[] $quizkeys
  17.  */
  18.  
  19. class Quiz extends Entity
  20. {
  21.     use SoftDeleteTrait;
  22.  
  23.     /**
  24.      * Fields that can be mass assigned using newEntity() or patchEntity().
  25.      *
  26.      * Note that when '*' is set to true, this allows all unspecified fields to
  27.      * be mass assigned. For security purposes, it is advised to set '*' to false
  28.      * (or remove it), and explicitly make individual fields accessible as needed.
  29.      *
  30.      * @var array
  31.      */
  32.  
  33.     protected $_accessible = [
  34.         '*' => true,
  35.         'id' => false,
  36.     ];
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement