1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Rep Power

    Creating database by Doctorine 2

    Hi everybody,

    Nowadays, I am trying to understand using doctrine and zend together.
    However, I am struggling to create database via doctrine.
    I can launch database connection between zend and mysql but I am not sure how to utilize from doctrine 2.
    I searched a lot to find solution but could not find any guidelines for the beginners.
    Can anyone please explain or send any efficient resources about creating database with doctrine 2?

    Kind regards
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Rep Power
    I don't use it, but there is a php open-source application called partkeepr that uses doctorine. You could download the app and look over their code to maybe get some ideas on the use.
    Doug G
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton
  4. #3
  5. Web Developer/Musician
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Nov 2004
    Tennessee Mountains
    Rep Power
    You would need to run a raw query to create a database, but there aren't too many reasons to do that inside an application or to even give that application the permissions to create dbs save for some sort of install/setup process. You would bypass Doctrine in this case and run the query directly from the db connection it uses.

IMN logo majestic logo threadwatch logo seochat tools logo