ZF2 TableGateway how to get Primary key
问题 I'm trying to determine primary key of table using MetadataFetature. However, the data are within protected $sharedData without any access method. How to acceess them ? Do I have create new class just to add "getPrimary" method ? Within AbstractTableGateway child: $metadata = $this->getFeatureSet()->getFeatureByClassName('Zend\Db\TableGateway\Feature\MetadataFeature'); die(vardump($this->sharedData)); getting Invalid magic property access in Zend\Db\TableGateway\AbstractTableGateway::__get()