lphuberdeau / Neo4j-PHP-OGM

A doctrine2 style library to access neo4j graphs
156 stars 45 forks source link

Documentation for labels? #66

Closed marlongichie closed 10 years ago

marlongichie commented 10 years ago

We already know you can set labels on the entity classes through annotations, but can someone update the documentation with more specific information including how to specify multiple labels.

philippemiguet commented 10 years ago

Hi @marlongichie,

here is the way to specify multiple labels on one entity:

use HireVoice\Neo4j\Annotation as OGM;
/**
 * @OGM\Entity(labels="Location,City")
 */
class City {
..
}

If I found some time I'll do a PR, otherwise I guess you've got all the info to make the update :)

frne commented 10 years ago

@PetitPhilou @marlongichie Proposed a PR (#67) providing documentation for labels...