Topics
- Doctrine
- Fixtures (ORM and Demo)
Changes
src/Acme/Bundle/TaskBundle
DataFixtures
Demo
LoadTaskData (created)
ORM
LoadTaskStatusData (created)
Entity
Repository
TaskRepository (created)
Task (created)
TaskStatus (created)
Tests
Unit
Entity
Task (created)
TaskStatus (created)
-
Create class Acme\Bundle\TaskBundle\Entity\Task
-
Create class Acme\Bundle\TaskBundle\Entity\Repository\TaskRepository
-
Create class Acme\Bundle\TaskBundle\Entity\TaskStatus
-
Add tests and run them
app/console doctrine:schema:update --dump-sql
app/console doctrine:schema:update --force
-
Create class Acme\Bundle\TaskBundle\DataFixtures\ORM\LoadTaskStatusData
-
Create class Acme\Bundle\TaskBundle\DataFixtures\Demo\LoadTaskData
-
Load fixtures
app/console doctrine:fixture:load --fixtures src/Acme/src/Acme/Bundle/TaskBundle/DataFixtures/ --append
- Check database tables for fixture data