Fork me on GitHub

Getting Started with Doctrine

This is only a basic startup project structure to create to aim people start to paly with Doctrine. Doctrine entities and codes are from (Getting Started with Doctrine)[] I've create a sample structure and add some codes. This project contains some advantages and features of PHP 7.


After cloning the repository, run composer install

composer install

Rename .env.example file to .env . Open and update with your database settings.

To load environment settings, I've used (phpdotenv)[]


Create your first database table from Product entity located in entities folder.

vendor/bin/doctrine orm:schema-tool:create
post)){ $this->page->title = $this->post->title; $this->page->meta_title = "sdas". $this->post->title; $this->page->title = "sadasd". $this->post->title; } } ?>

Posted in Doctrine on Aug 03, 2016