<table class="table table-bordered table-hover table-striped">
  <tr>
    <th>항목</th>
    <th>갯수</th>
  </tr>
  <?php foreach ($partCellDatas['entities'] as $entity): ?>
    <?php $partCellDatas['entity'] = $entity; ?>
    <tr>
      <?php foreach (['title', 'stock'] as $field): ?>
        <td nowrap><?= $partCellDatas['service']->getHelper()->getFieldView($field, $entity->$field, $partCellDatas) ?></td>
      <?php endforeach ?>
    </tr>
  <?php endforeach ?>
</table>