Don't use primary key for offers
This commit is contained in:
parent
539b7edffe
commit
d190971718
8 changed files with 65 additions and 15 deletions
|
@ -30,7 +30,7 @@
|
|||
{% for offer in offers %}
|
||||
<div class="mb-5">
|
||||
<div class="card offer h-100">
|
||||
<a href="{{ path('show_offer', {'id': offer.id }) }}">
|
||||
<a href="{{ path('show_offer', {'urlId': offer.urlId }) }}">
|
||||
{% if offer.photoFilename %}
|
||||
<img class="card-img-top offer-img" src="{{ asset('uploads/photos/' ~ offer.photofilename) }}" />
|
||||
{% else %}
|
||||
|
|
Reference in a new issue