2017 © Pedro Peláez
 

library couchbase-bundle

use couchbase with doctrine

image

fredpalas/couchbase-bundle

use couchbase with doctrine

  • Sunday, February 18, 2018
  • by fredpalas
  • Repository
  • 2 Watchers
  • 2 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SymfonyCouchbase

Bundle for connect Couchbase with Doctrine ORM The Bundle use the model like Doctrien ORM except for the relations (working in progress with N1QL Join). For retrive the data for key view are used working in progress to use N1QL and Index (mandatory for quick searchs), (*1)

Installation

Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:, (*2)

composer require fredpalas/couchbase-bundle
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...        
        new Apperturedev\CouchbaseBundle\CouchbaseBundle(),
    );
}
# app/config/config.yml
couchbase:
    url: <couchbase.url>
    buckets:
        default: #dafult bucket
            bucket_name: <bucket name>         

Requirements

JMS Serializer, (*3)

Documentation


//in action throw container public function indexAction() { /** @var Apperturedev\CouchbaseBundle\Classes\CouchbaseORM $couchbase editor Helper */ $couchbase = $this->get('couchbase'); $entity = New Entity(); // do anything // save $couchbase->save($entity); $entity->getId(); // Will set the id Automatic $repository = $couchbase->getRepository('Bundle:Entity'); // get data $entity1 = $repository->getById(1); /** For Run Couchbase View you need to run bin/console couchbase:generate:view Bundle:Entity */ /** Fixing a bug for moving old version class */ // country example $query = $repository->get('country'); $query->key('Spain')->order(\CouchbaseViewQuery::ORDER_ASCENDING)->limit(6); // Will return a array if more than 1 or the object if is 1 $country = $repository->execute($query); }

The Versions

18/02 2018

dev-master

9999999-dev

use couchbase with doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar fredpalas

18/02 2018
17/02 2018
16/02 2018