Initial version. Without tests. Not intended to use in production yet.
Refactoring of the methods that save objects to the database.
EnquiryManager:createEnquiry -> EnquiryManager:saveEnquiry
EnquiryManager:answerEnquiry -> EnquiryManager:saveAnswer
Changed the "serialization" of the about field in Enquiry to JSON format.
Removed the aboutDefinition field, about field is used to save the definition.
The "serialization" is not performed in an Enquiry method anymore, but in the listener and repository method.
Added the postPersist event to the listener so it can revert the about field to point to an object after persisted, so any call to getAbout in any Enquiry object returns an actual object and not the definition.
Make the user parameter required in EnquiryManager:saveEnquiry
Changes to apply the right coding style
Change the definition of Enquiry Manager service
to remove security context from the arguments.
Added unit test of the EnquiryManager class
Added license header in each php file
composer.json. Resolve issue #3
phpunit.xml.dist and bootstrap.php files. Resolve issue #4
travis.yml file. Resolve issue #5
Travis Status
Build Status
Change the travis dev branch path
Changed Response class mapping, so the user can
define its own Response class extending the default one
and choosing type of inheritance (in ORM).
Bugs in mongodb documents mapping fixed.
Optimization: Enable the Response class mapping
listeners only if there are more than one class,
counting default ones and user defined ones.
Added the possibility of add a prefix to tables or collection names
Changes to apply right coding style
Added optional logging posibility.
Added missing LICENSE.md file
Dispatch events before and after persisting objects