3.0 bake template fix

For belongsTo associations the line in the index template will look like this

```php
<?= $city->has('country') ? $this->Html->link($city->country->name, ['controller' => 'Countries', 'action' => 'view', $city->country->id]) : ''; ?>
```php