Proxy Class for Doctrine 1.2 models
I am writing an application where I route my methods from my application to a sevice and then to the models of Doctrine. But the server of the service is not allowing more than one class to be included. So I need to write a proxy class for all my models of the tables that have been generated by doctrine. I knw a solution that, i can have each and every method of all the classes be defined in the proxy class, so that i can include that proxy class in the server (of the service) and call my methods through the proxy class. But i guess its not a feasible method. Coz my proxy class will become huge. I need a solution where i have lesser methods in my proxy class. My methods for every class are mostly common like fetch() delete() update() insert() for now i m differentiating them by appending the classname viz. Employee_fetch() Student_fetch() is it possible to have a better solution than this??
It turned out that the question is about SOAP Server and setClass() method. I would suggest to have different URLs for different classes. For example: http://example.com/service/classA http://example.com/service/classB http://example.com/service.php?class=classC Then you can set the class based on the URL or GET parameter. Please let me know if this approach might work for you. I'm just curious.
Refresh variable in php
PHP / MYSQL Select From Where Column Equals ( Advanced )
ssh from parameter laravel
How to format php Datetime?
Use OR within if else condition by inverse condition order in php
php gzcompress generates corrupted .zip file
Build grid rows based on columns widths array PHP
what does PHP substr do on utf-8 string?
php get both values from same key in array
Need a PHP echo to produce a text hyperlink on buffer
PHP - Quickly Loop Through Image Pixels
How to list last 20 results from my database? [duplicate]
Class not found Die and Dump environment variable keys
Array to string conversion is not working in opencart?
Server Error 500 - Ubuntu
Internal Server Error - Is it my syntax?