Yii Framework Forum: Yii Database Code First Approach - Yii Framework Forum

Jump to content

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

Yii Database Code First Approach Rate Topic: -----

#1 User is offline   bigN 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 23-June 11

Posted 09 May 2013 - 06:24 AM

Hi to you all,
Recently I am reading about Code First approach using Entity Framework in ASP.NET MVC framework, which has similar implementaion in Symfony framework using Doctrine, which I like a lot. So my question is how can I implement it with YII,(fixtures, migration etc)?
In brief I would like my workflow to be :
1) Create php file representing my database tables (aka POCO files)
2) Create initialization file (eg fixtures for all tables)
3) Generating my database tables from the above files (which will be recreated each time I start the application for e.g. Unit Testing)

Thanks
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