Comments (9)
I have the same issue: there is a name space as such, but not the class.
Running Symfony 2.6
from orientdb-odm.
I think that's quite an old article, and @mitom changed the implementation of how we map stuff in this pr...hope it helps :) @mitom do you have an example configuration for the guys?
from orientdb-odm.
Also, if you guys dont mind and wanna play around with it you can use the beta 7 which still relies on the old API
from orientdb-odm.
Ok, let me get this straight...
- Old Beta 7 are symfony compliant, other then having to write a service.
- Master in not symfony compliant.
Other then the refactoring and proxies, Beta7 and Master are pretty much the same?
Well, that and the fact that beta 7 downgrades doctrine to 2.3.x and symfony to 2.6.1, and the symfony cache goes berserk because cannot flush when downgrading. -- I stand corrected: if you re-run compser it actually re-upgrades symfony to 2.6.4, solving the cache issues.
from orientdb-odm.
The new configuration is at the moment quite ugly I'd say (I still think it's better than before, but the refactoring I started is incomplete and halted due to a bug). Oh and there is no such thing as symfony compliant.
As for an example for symfony:
odb.binding_paramters:
class: Doctrine\OrientDB\Binding\BindingParameters
arguments: ["host", "port", "username", "password", "database"]
odm.binding:
class: Doctrine\OrientDB\Binding\HttpBinding
arguments: ["@odb.binding_parameters"]
odm.configuration:
class: Doctrine\ODM\OrientDB\Configuration
arguments: [{
"document_dirs": ["dir1", "dir2"],
"proxy_dir": "path/to/dir"
}]
odm.manager:
class: Doctrine\ODM\OrientDB\Manager
arguments: ["@odm.binding", "@odm.configuration"]
I don't have a symfony installation handy to test it though. A few extra notes:
- This could be much shorter in definition, if instead of 4 services there would be a factory, to which all the options are passed and it returns a Manager.
- Check Doctrine\ODM\OrientDB\Configuration to see how to pass the arguments.
- In case you need serialization (which is likely if you wanna use this for users) you will need to autoload your entity classes. This is usually taken care of in the bundle for these components, but since there's no bundle for this yet, you have to do it on your own. Take a look at the mongodb one to see how it's done.
from orientdb-odm.
Well, I have always been "in and out" of Symfony, since 1.0, after all my daily job isn't programming.
I'll have a look at things as they stand (gotta catch up on symfony 2.6 too) and see what could be "adjusted". I am also quite new to OrientDB/NoSQL arena, so I still am thinking in a very RDBMSesque way, and as such I would love to have the Doctrine's help in dealing with data.
Maybe by adapting the bundle that was made some time ago, but for another symfony version, I can hack something out.
from orientdb-odm.
@Garani71 if you simply need a nosql document manager that actually makes your life easier, I'd go with mongodb as it has a more mature implementation. This one AFAIK is pretty much in beta, so it will likely cause you more problems than what it solves.
from orientdb-odm.
confirmed :)
from orientdb-odm.
Thanks for the thoughts. What i see is a graph of devices, and that can't quite be replicated in a Document DB, imho, and quite a pain to do in an SQL db.
Of course I do need to store "document" data as well, and I have that in XML mostly. And MongoDB would force me to get into the XML and pull the info out. Something I would have to do anyhow, but it's the graphing part that is a killer: I really want those vertexes and edges. :)
from orientdb-odm.
Related Issues (20)
- HTTP Client Separation HOT 3
- what happened to the github-wiki HOT 1
- problem with composer "symfony/finder": "2.1.*" HOT 3
- Connection or reconnection strange behavior in response time HOT 18
- Use maven to install OrientDB in travis HOT 3
- Use with Symfony2 HOT 18
- Missing 'LIKE' detection on Command 'where' method HOT 5
- Question mark in a query causes a server parsing error HOT 3
- Question
- Use with Laravel 4 HOT 2
- [Proxy] Implement a proper ProxyFactory HOT 2
- [Caster] Cache usage
- SQL Update returns Cannot execute non idempotent command HOT 1
- Fatal error: Class 'Doctrine\ODM\OrientDB\Mapper' not found HOT 8
- Binary protocol? HOT 12
- Tests failing HOT 5
- Fatal error: Call to a member function getId() on a non-object
- Active HOT 3
- State of the project HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orientdb-odm.