Getting Associated Entries | express_entry_list -> template -> boats.php
Permalink<?php $boatImage = $item->getEntry()->getBoatImage(); if (is_object($boatImage)) { ?> <img src="<?php echo $boatImage->getRelativePath(); ?>" alt=""> <?php } ?> <h3><?=$item->getEntry()->getBoatName();?></h3> <h4><?=$item->getEntry()->getBoatDescription();?></h4> <p>Stock: <?=$item->getEntry()->getBoatStock();?></p> <p>Fuel Type: <?=$item->getEntry()->getBoatFuelType();?></p> <p>Color: <?=$item->getEntry()->getBoatColor();?></p> <p>Location: <?=$item->getEntry()->getMarinaName();?></p>

https://documentation.concrete5.org/developers/express/creating-expr...
https://documentation.concrete5.org/developers/express/using-the-exp...
But his example shows how to do the express_entry_detail page template.
My situation is very similar to the website he did for the salon. There is stylist page where it lists all the stylists and the locations associated to them (http://www.gingersalon.com/stylists).
https://documentation.concrete5.org/developers/express/overview...
Boat have the fields “Name”->BoatName (text), “Description”->BoatDescription (textarea), “Stock”->BoatStock (number), “Fuel Type“->BoatFuelType (select), “Color“->BoatColor (select). I made the association many to one to the Marina object.
Marina have one field "Name"->MarinaName (text). Marina is related to a Boat through a one to many connection.
I have created the forms. For Boat form I have 2 field sets: Basics (name, description, stock, fuel type and color) and Marina association as a second set.
For Marina form, I have name and the boat association.
What is the php to pull the marina association on the boats page?
$item->getMarina()->getName();
<p>Color: <?=$item->getEntry()->getBoatColor();?></p> <p>Location: <?=$item->getMarina()->getMarinaName();?></p>
Also I thought that I need getMarinaName(); (handle is marina_name) vs getName();?
Unfortunately both ways I am getting an error: Call to undefined method Concrete\Core\Express\Entry\Search\Result\Item::getMarina()
I'm wondering if you don't have to do
$item->getEntry()->getMarina()->getMarinaName();
I am still getting an error for $item->getEntry()->getMarina()->getMarinaName();
Call to undefined method Concrete\Core\Entity\Attribute\Value\Value\SelectValue::getMarinaName()