Extended Phalcon ORM Model class parses JSON representations of a user-defined model automatically--matching JSON key value pairs to object properties while handling nested objects for one-to-many relationships.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
PhalconModelJSONDistiller.php initial commit Nov 13, 2016
README.md initial commit Nov 13, 2016

README.md

PhalconModelJSONDistiller.php extends the Phalcon ORM Model class to add a set of methods which will process or "distill" a complex JSON object that matches the user defined model. Extending this model for your PHP model class will let your application accept JSON representations of that model class as a string parameter to the distill method. The distill method will automatically populate your model if the JSON object keys match the names of the model properties--by convention. It handles nested objects by processing each recursively.