easybib / easybib_doctrineresource Goto Github PK
View Code? Open in Web Editor NEWModular Doctrine setup/bootstrapping for Zend Framework(1)
License: Other
Modular Doctrine setup/bootstrapping for Zend Framework(1)
License: Other
the param should not be passed in as array($entityFolders), as this wraps an array into another array.
Do we really want to add this folder although it does not necessarily exist in a project?
another issue I ran into:
when using doctrineResource from within a module, which does not live in app/modules/ (for example in a travis-ci test environment)
the path determined by getModulePath does not resolve to an existing folder, actually it generates something like: /bibsample/app/modules/infolit/app/modules/infolit/src/InfoLit/Entity
a rather dirty way to fix this issue would be the following, which leads to increased FS-reads :( cannot think of a better way right now.
/**
* Get Entity folders
*
* @return array
*/
protected function getEntityFolders()
{
$folders = array();
//only set default entity dir if it really exists
if (is_dir($this->rootPath . '/library/Doctrine/Model')) {
$folders[] = $this->rootPath . '/library/Doctrine/Model';
}
//set configured entity-dir if run in module-standalone context
if (is_dir($this->rootPath . '/' . $this->config->modelFolder)) {
$folders[] = $this->rootPath . '/' . $this->config->modelFolder;
}
//set configured entity-dir if run in module context
if (is_dir($this->getModulePath() . $this->config->modelFolder)) {
$folders[] = $this->modulePath . '/' . $this->config->modelFolder;
}
return $folders;
}
This seems to be it: v2.3.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.