/** * To string * * @return string */ public function __toString() { $result = 'New GroupGenre'; if (null !== $this->group && null !== $this->genre) { $result = $this->group->getName() . ' - ' . $this->genre->getName(); } return $result; }
/** * Test an empty Genre entity */ public function testEmptyGenre() { $genre = new Genre(); $this->assertNull($genre->getId()); $this->assertNull($genre->getName()); $this->assertNull($genre->getCreatedBy()); $this->assertNull($genre->getUpdatedBy()); $this->assertNull($genre->getSlug()); }