public function getMetadataFor($tableName, array $parentName = array())
    {
        $avaibleData = array();
        foreach ($this->getAllMetadata() as $metadata) {
            $avaibleData[] = $metadata->getName();
            if ($metadata->getName() === $tableName) {
                return $metadata;
            }
        }

        throw new \Exception(sprintf('"%s" not found in "%s"', $tableName, implode(', ', $avaibleData)));
    }
public function getMetadataFor($tableName, array $parentName = array())
    {
        $avaibleData = array();
        foreach ($this->getAllMetadata() as $metadata) {
            $avaibleData[] = $metadata->getName();
            if ($metadata->getName() === $tableName) {
                return $metadata;
            }
        }

        throw new \Exception(sprintf('"%s" not found in "%s"', $tableName, implode(', ', $avaibleData)));
    }
public function getMetadataFor ( $ tableName , array $ parentName = array ( ) ) { $ avaibleData = array ( ) ; foreach ( $ this -> getAllMetadata ( ) as $ metadata ) { $ avaibleData [ ] = $ metadata -> getName ( ) ; if ( $ metadata -> getName ( ) === $ tableName ) { return $ metadata ; } } throw new \ Exception ( sprintf ( '"%s" not found in "%s"' , $ tableName , implode ( ', ' , $ avaibleData ) ) ) ; }
Get particularie metadata from jsin

@param  string                                                      $tableName
@return \CrudGenerator\Metadata\Sources\Json\MetadataDataObjectJson
Get particularie metadata from jsin