5164d5184b
This reverts commit 7cdba9a90b
.
49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
namespace Entity;
|
|
|
|
use \Doctrine\Common\Collections\ArrayCollection;
|
|
|
|
/**
|
|
* Station streamers (DJ accounts) allowed to broadcast to a station.
|
|
*
|
|
* @Table(name="station_streamers")
|
|
* @Entity(repositoryClass="Entity\Repository\StationStreamerRepository")
|
|
* @HasLifecycleCallbacks
|
|
*/
|
|
class StationStreamer extends \App\Doctrine\Entity
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->is_active = true;
|
|
}
|
|
|
|
/**
|
|
* @Column(name="id", type="integer")
|
|
* @Id
|
|
* @GeneratedValue(strategy="IDENTITY")
|
|
*/
|
|
protected $id;
|
|
|
|
/** @Column(name="station_id", type="integer") */
|
|
protected $station_id;
|
|
|
|
/** @Column(name="streamer_username", type="string", length=50, nullable=false) */
|
|
protected $streamer_username;
|
|
|
|
/** @Column(name="streamer_password", type="string", length=50, nullable=false) */
|
|
protected $streamer_password;
|
|
|
|
/** @Column(name="comments", type="text", nullable=true) */
|
|
protected $comments;
|
|
|
|
/** @Column(name="is_active", type="boolean", nullable=false) */
|
|
protected $is_active;
|
|
|
|
/**
|
|
* @ManyToOne(targetEntity="Station", inversedBy="streamers")
|
|
* @JoinColumns({
|
|
* @JoinColumn(name="station_id", referencedColumnName="id", onDelete="CASCADE")
|
|
* })
|
|
*/
|
|
protected $station;
|
|
} |