Comment
extends Entity
in package
Comment Entity
Table of Contents
Properties
- $body : string
- $created : DateTime|null
- $id : int
- $points_of_interest : PointsOfInterest
- $points_of_interest_id : int|null
- $rating : int|null
- $roadtrip : Roadtrip
- $roadtrip_id : int|null
- $user : User
- $user_id : int
- $_accessible : array<string, bool>
- Fields that can be mass assigned using newEntity() or patchEntity().
Properties
$body
public
string
$body
$created
public
DateTime|null
$created
$id
public
int
$id
$points_of_interest
public
PointsOfInterest
$points_of_interest
$points_of_interest_id
public
int|null
$points_of_interest_id
$rating
public
int|null
$rating
$roadtrip
public
Roadtrip
$roadtrip
$roadtrip_id
public
int|null
$roadtrip_id
$user
public
User
$user
$user_id
public
int
$user_id
$_accessible
Fields that can be mass assigned using newEntity() or patchEntity().
protected
array<string, bool>
$_accessible
= ['user_id' => true, 'roadtrip_id' => true, 'points_of_interest_id' => true, 'body' => true, 'rating' => true, 'created' => true, 'user' => true, 'roadtrip' => true, 'points_of_interest' => true]
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.