Conversation
extends Entity
in package
Conversation Entity
Table of Contents
Properties
- $id : int
- $messages : array<string|int, Message>
- $modified : DateTime|null
- $user_one : User
- $user_one_id : int
- $user_two : User
- $user_two_id : int
- $_accessible : array<string, bool>
- Fields that can be mass assigned using newEntity() or patchEntity().
Properties
$id
public
int
$id
$messages
public
array<string|int, Message>
$messages
$modified
public
DateTime|null
$modified
$user_one
public
User
$user_one
$user_one_id
public
int
$user_one_id
$user_two
public
User
$user_two
$user_two_id
public
int
$user_two_id
$_accessible
Fields that can be mass assigned using newEntity() or patchEntity().
protected
array<string, bool>
$_accessible
= ['user_one_id' => true, 'user_two_id' => true, 'modified' => true, 'user_one' => true, 'user_two' => true, 'messages' => 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.