Yii Framework Forum: MetaModel, or model creation on-the-fly? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

MetaModel, or model creation on-the-fly? Rate Topic: -----

#1 User is offline   canni 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 09-July 10

Posted 09 July 2010 - 07:52 AM

Hey everyone,

i have little problem ;)

Is there a way to achieve something like MetaModel for many tables, or to create models for tables on-the-fly, with different column-sets, but with the same parametrized methods?

I have something like this scenario:
-Most of business logic lays into DB, as procedures/functions/triggers, Yii app shod be only a GUI for this logic
-Moving logic to GUI isn't possible
-in DB there is many tables that are the same from logic point of view, but holds different set of columns (ie. many tables representing different user service types), but all of them share set of procedures, to operate on them

I want something like 'Service' class, witch will be meta model for all of this tables, or will create models for tables on-the-fly and propagate this models with set of methods.
Any tips in how to implement that scenario?
Big thx for any help!

PS app will be using php 5.3 so new php features introduced in 5.3 are welcome ;)
0

#2 User is offline   canni 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 09-July 10

Posted 28 July 2010 - 04:24 AM

Bump, anyone?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users