src/PHPDish/Bundle/ResourceBundle/Metadata/ResourceRegistry.php
public function getResourceItemByModel($model)
    {
        foreach ($this->resources as $alias => $resource) {
            foreach ($resource as $resourceItem) {
                if ($resourceItem['model'] === $model) {
                    return $resourceItem;
                }
            }
        }
        return null;
    }
public function getResourceItemByModel($model)
    {
        foreach ($this->resources as $alias => $resource) {
            foreach ($resource as $resourceItem) {
                if ($resourceItem['model'] === $model) {
                    return $resourceItem;
                }
            }
        }
        return null;
    }
根据model查找
@param string $model
@return array|null