echo $property->getPropertyName(); ?> </p> </div> <table cellpadding="5" class="bordered"> <thead> <tr> <th>Name of Tenant</th> <th>Room Label</th> <th>Business Name</th> <th>Details</th> </tr> </thead> <tbody> <?php $tenants = Tenant::findByPropertyId($property->id); ?> <?php foreach ($tenants as $tenant) { ?> <?php $room = Room::findByTenantId($tenant->id); ?> <?php /**echo "Tenant: "; echo "<tt></pre>".var_dump($tenant)."</pre></tt>"; echo "Room: "; echo "<tt><pre>".var_dump($room)."</pre></tt>";*/ ?> <tr> <td><?php