* Suchformular auf Startseite funktioniert nun
* Neueste Design-Änderungen aufgenommen * Sortierung auf Reiseübersichtsseiten * Fehler bei Suche behoben git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3285 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
99c6715712
commit
23b2c7a7e8
12 changed files with 217 additions and 119 deletions
|
|
@ -309,7 +309,7 @@ class TravelProgram
|
|||
private $departures;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToMany(targetEntity="AppBundle\Entity\TravelCountry")
|
||||
* @ORM\ManyToMany(targetEntity="AppBundle\Entity\TravelCountry", inversedBy="programs")
|
||||
* @ORM\JoinTable(name="travel_program_country",
|
||||
* joinColumns={@ORM\JoinColumn(name="program_id", referencedColumnName="id")},
|
||||
* inverseJoinColumns={@ORM\JoinColumn(name="country_id", referencedColumnName="id")}
|
||||
|
|
@ -1501,4 +1501,16 @@ class TravelProgram
|
|||
{
|
||||
return $this->options;
|
||||
}
|
||||
|
||||
public function getPreviewImage()
|
||||
{
|
||||
foreach ($this->getImages() as $image)
|
||||
{
|
||||
if ($image->getType() == 2)
|
||||
{
|
||||
return $image;
|
||||
}
|
||||
}
|
||||
return $this->getImages()[0];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue