php


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.

Related Links

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?

Categories

HOME
nam
jms
writefile
foaf
dry
tabs
navigation
gtk
azure-graph-api
phpstorm-2017.1
buffer
supervisord
office-ui-fabric
significance
spam
azure-machine-learning
data-type-conversion
stackexchange.redis
fluent-migrator
pdf.js
webviewclient
mdns
instructions
om-next
nest
apptentive
cmis
jfxtras
stackpanel
eclipse-gmf
llvm-ir
uipickerview
klee
notesview
daz3d
music21
swift2.3
nusoap
gtk#
nivo-slider
network-protocols
dynamics-crm-4
maatwebsite-excel
rational-performance-test
multi-touch
tablespace
ndk-build
clp
node-glob
adjacency-list
exists
sharepoint-apps
mathnet
wif4.5
arbre
kefir.js
inequality
inputbox
oracle-adf-mobile
xcode6.3.1
lumia-imaging-sdk
android-2.3-gingerbread
fileshare
meteor-collections
meteorite
proxy-server
ggts
grails-2.3
yii-booster
acceptance-testing
web-frameworks
cmath
significant-digits
onconfigurationchanged
workflow-manager-1.x
image-formats
viewpagerindicator
java.lang.class
nsfont
drawimage
radscheduler
data-dump
mediacontroller
rtd
icicles
downcasting
gui-designer
isapi-redirect

Resources

Encrypt Message