Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Model\Entity;
- use Cake\ORM\Entity;
- use SoftDelete\Model\Entity\SoftDeleteTrait;
- /**
- * Quiz Entity.
- *
- * @property int $id
- * @property string $title
- * @property int $course_id
- * @property \App\Model\Entity\Course $course
- * @property int $timelimit
- * @property \App\Model\Entity\Quizkey[] $quizkeys
- */
- class Quiz extends Entity
- {
- use SoftDeleteTrait;
- /**
- * Fields that can be mass assigned using newEntity() or patchEntity().
- *
- * Note that when '*' is set to true, this allows all unspecified fields to
- * be mass assigned. For security purposes, it is advised to set '*' to false
- * (or remove it), and explicitly make individual fields accessible as needed.
- *
- * @var array
- */
- protected $_accessible = [
- '*' => true,
- 'id' => false,
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement