Neo4j Data Structure - mymagic/open_hub GitHub Wiki

Open Hub Neo4j Database

Created as an extension on top of graphaware/neo4j-php-ogm

Documentation

Please refer the documentation available on ReadTheDocs.

Neo4J Data Structure

OGM class can be generated under Gii - Model Generator and make sure to create the none code meta data file at \data or \modules\{modelName}\data have the following object.


'neo4j' => array (
        'attributes' => array(
            'name' => 'type', // name should match with created model attribute and type can be 'string', 'int', 'boolean' or 'float'
            'id' => 'string',
            'title' => 'string',
            'price' => 'float',
            'is_active' => 'boolean',
            'date_created' => 'int',
        )
    )

Attribute name should match with created model attribute, ex. id and type can be string, int, boolean or float