{"id":467,"date":"2015-06-02T02:53:22","date_gmt":"2015-06-02T07:53:22","guid":{"rendered":"http:\/\/www.g31zone.com\/?p=467"},"modified":"2015-06-02T02:53:22","modified_gmt":"2015-06-02T07:53:22","slug":"doctrine-console-commands","status":"publish","type":"post","link":"https:\/\/www.g31zone.com\/?p=467","title":{"rendered":"Doctrine Console Commands"},"content":{"rendered":"<p>Example doctrine console command:<\/p>\n<p><code><br \/>\nphp vendor\/bin\/doctrine orm:generate-entities --help<br \/>\n<\/code><\/p>\n<p>Available commands:<\/p>\n<p><code><br \/>\ndbal:import Import SQL file(s) directly to Database.<br \/>\n<\/code><br \/>\n<code><br \/>\ndbal:run-sql Executes arbitrary SQL directly from the command line.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:clear-cache:metadata Clear all metadata cache of the various cache drivers.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:clear-cache:query Clear all query cache of the various cache drivers.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:clear-cache:result Clear result cache of the various cache drivers.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:convert-d1-schema Converts Doctrine 1.X schema into a Doctrine 2.X schema.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:convert-mapping Convert mapping information between supported formats.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:ensure-production-settings Verify that Doctrine is properly configured for a production environment.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:generate-entities Generate entity classes and method stubs from your mapping information.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:generate-proxies Generates proxy classes for entity classes.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:generate-repositories Generate repository classes from your mapping information.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:run-dql Executes arbitrary DQL directly from the command line.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:schema-tool:create Processes the schema and either create it directly on EntityManager Storage Connection or generate the SQL output.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:schema-tool:drop Processes the schema and either drop the database schema of EntityManager Storage Connection or generate the SQL output.<br \/>\n<\/code><br \/>\n<code><br \/>\norm:schema-tool:update Processes the schema and either update the database schema of EntityManager Storage Connection or generate the SQL output.<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Example doctrine console command: php vendor\/bin\/doctrine orm:generate-entities &#8211;help Available commands: dbal:import Import SQL file(s) directly to Database. dbal:run-sql Executes arbitrary SQL directly from the command line. orm:clear-cache:metadata Clear all metadata cache of the various cache drivers. orm:clear-cache:query Clear all query cache of the various cache drivers. orm:clear-cache:result Clear result cache of the various cache drivers.<\/p>\n<p><a class=\"button\" href=\"https:\/\/www.g31zone.com\/?p=467\" title=\"More\">  Read More \u2192<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[171],"tags":[172],"class_list":["post-467","post","type-post","status-publish","format-standard","hentry","category-symfony2-doctrine","tag-doctrine-console-commands"],"_links":{"self":[{"href":"https:\/\/www.g31zone.com\/index.php?rest_route=\/wp\/v2\/posts\/467"}],"collection":[{"href":"https:\/\/www.g31zone.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.g31zone.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.g31zone.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.g31zone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=467"}],"version-history":[{"count":2,"href":"https:\/\/www.g31zone.com\/index.php?rest_route=\/wp\/v2\/posts\/467\/revisions"}],"predecessor-version":[{"id":469,"href":"https:\/\/www.g31zone.com\/index.php?rest_route=\/wp\/v2\/posts\/467\/revisions\/469"}],"wp:attachment":[{"href":"https:\/\/www.g31zone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.g31zone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.g31zone.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}