Site Administrator
  • Overview
  • Getting Started
    • Installation
    • Configuration
    • Access & Navigation
  • User Guide
    • Dashboard
    • Modules
      • Members
      • Page Editor
      • FAQs
      • News
      • Photo Gallery
      • Forms
      • Catalog
      • Events
      • Staff
    • Settings
  • Developer Guide
    • The Basics
      • Controllers
      • Rendering with Vue JS
      • Responses
      • Routing
      • Views
      • View Models
    • Models & Doctrine ORM
      • Models
      • Entity Manager
      • Repositories
    • Advanced Topics
      • Creating a Module
      • Creating a Theme
      • Events
      • Logging
      • modRequest
      • IOC & Dependency Injection
    • Utilities & Helpers
      • DateTime
      • Doctrine Utils
      • URL
    • Command Line
      • Doctrine CLI
      • Executing Controllers
    • Vue Components
  • Credits
  • Old Guide
    • Site Administrator
      • Site Administrator
Powered by GitBook
On this page
  • List Available Doctrine Commands
  • Update Doctrine Schema
  • Clear Doctrine Cache
  1. Developer Guide
  2. Command Line

Doctrine CLI

PreviousCommand LineNextExecuting Controllers

Last updated 7 years ago

SA3 modules use the as the implementation of its persistence layer. Sometimes, it may be necessary to update doctrine's schema, clear its caches, or use some of doctrine's many other tools through the command line. The SA3 exposes doctrine's tools so developers can quickly access them.

List Available Doctrine Commands

A comprehensive list of doctrine's commands can be found in their .

You can also view a list of available doctrine operations using the command below.

php app.php -c=doctrine -e=environment

Update Doctrine Schema

php app.php -c=doctrine -e=environment orm:schema-tool:update

Clear Doctrine Cache

// Clear metadata
php app.php -c=doctrine -e=environment orm:clear-cache:metadata

// Clear query cache
php app.php -c=doctrine -e=environment orm:clear-cache:query

// Clear result cache
php app.php -c=doctrine -e=environment orm:clear-cache:result
Doctrine 2 ORM
documentation reference