AzuraCast/src/Entity/StationStreamer.php
2017-01-23 18:17:50 -06:00

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;
}