lampjunkie / xml-hitch Goto Github PK
View Code? Open in Web Editor NEWA PHP 5.3 library to bind objects to XML using annotations (based on java's JAXB)
A PHP 5.3 library to bind objects to XML using annotations (based on java's JAXB)
$hitch = new HitchManager();
After this line hitch is not able to executed.
$hitch->setClassMetaDataFactory(new ClassMetadataFactory(new AnnotationLoader(new AnnotationReader()), new ArrayCache()));
In the above line annotation reader and arrayChache were not located in downloaded file.
Could any one help regarding this issue
How use doctrine common lib in hitch library.
What files from doctrine common library have to place in hitch.
Please specify the path.
HI there,
first of all. Thank you for this great software.
I use it in my current project and the idea really rocks (i didn't come up to use doctrine annotations to do the mapping).
I modified a lot and I hope i have time to clean it up and make a pull request.
But today I found a neat Bug, that you should be aware of - sorry that i don't have time to write a test an fork.
in AnnotationLoader:106 in the part of instanceof XmlElement you call addEmbed($nodeName, $property->getName())
so first nodeName (that from xml) and second property (that for domainmodel)
but in
ClassMetadata.php:152 addEmbed is
public function addEmbed($property, $nodeName, ClassMetadata $metadata)
so the other way round. So that node and property get assigned the wrong way.
Best regards
Philipp
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.