Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Alexander Trauzzi
    @atrauzzi
    Hello to anyone who joins! I've recently added some code analysis to this library in case you are looking to gauge quality. It's also been updated to support Laravel 5, and is ready to rock!
    Thomas Ruiz
    @thomasruiz
    Hey, I'm here for a bit of informations on atrauzzi/laravel-mongodb
    Does it need any specific installation (or I just need to add the service provider) ?
    Alexander Trauzzi
    @atrauzzi
    You will have to configure the mappings using a config-style syntax.
    So basically defining metadata and telling it about your columns and their types.
    How it all maps.
    I have yet to fully document all that for either library, but I do try to keep it intuitive.
    Thomas Ruiz
    @thomasruiz
    Alright, I'll try that out later today
    Thanks
    Alexander Trauzzi
    @atrauzzi
    If you look at that file, you'll get an idea of what needs to be done. But you're basically just putting in each type of class and defining it's types and mappings.
    Thomas Ruiz
    @thomasruiz
    Can you still use the annotations provided by Doctrine?
    Alexander Trauzzi
    @atrauzzi
    I think you'd have to configure the annotation metadata driver. But that's actually not as difficult as you might think.
    sec
    Thomas Ruiz
    @thomasruiz
    okay cool, seems quite easy to use
    Alexander Trauzzi
    @atrauzzi
    Yeah, definitely.
    And you can do that re-binding in your own serviceprovider.
    Thomas Ruiz
    @thomasruiz
    I'll try that and come back to you if I have any issue :)
    Alexander Trauzzi
    @atrauzzi
    Awesome, good luck :)
    Thomas Ruiz
    @thomasruiz
    Okay, I got it to work pretty easily with L4.2 (didn't try annotations though)
    Quick question: tags 2. are for L4 and tags 3. will be for L5?
    Alexander Trauzzi
    @atrauzzi
    Which tags?
    Thomas Ruiz
    @thomasruiz
    tag 2.x for L4 and 3.x for L5
    Alexander Trauzzi
    @atrauzzi
    i think its 1.x and dev master for now
    Thomas Ruiz
    @thomasruiz
    Alexander Trauzzi
    @atrauzzi
    1.x and 2.x then.
    But I think the 2.x tags are only pointing to dev-master commits.
    Thomas Ruiz
    @thomasruiz
    It seems that 2.0.0 was released a bit prematurely, maybe you should tag atrauzzi/laravel-mongodb@550c566 as 2.0.0?
    Alexander Trauzzi
    @atrauzzi
    Ahh, yeah, I should update it.
    Layton Everson
    @laytoneverson
    Hey there. Thanks for writing the laravel-docrine bridge. I'm a little confused.. How do I map entities? Can I just create them in the Models folder, use annotation, and all will work?
    Clemen
    @cleacos
    hi
    I'm trying to use laravel-doctrine but i get "Class doctrine.schema-tool does not exist"
    Clemen
    @cleacos
    It'is here $metadata = App::make('doctrine.metadata'); in CreateSchemaCommand.php
    Clemen
    @cleacos
    @atrauzzi
    Josh Walker
    @joshjwalker
    @Javacodia what mapping type are you using?
    And I actually prefer to use the built in doctrine commands. If you know Doctrine well, you could use the actual doctrine cli commands, and they offer many more useful commands as well
    @laytoneverson You can use YAML, XML, Annotations on your classes, or a doctrine configuration chain, which I'm not sure how to use. But, all you need to do is point the "paths" variable in your configuration file to the path that holds your metadata