ฉันได้สร้างเอนทิตีใน zend framework 2 โดยใช้หลักคำสอน 2 หลังจากนั้นฉันใช้คำสั่งนี้เพื่อตรวจสอบสคีมาปัจจุบัน
./vendor/bin/doctrine-module orm:validate-schema
ฉันได้ผลลัพธ์เช่น:
Mapping] OK - The mapping files are correct.
[Database] FAIL - The database schema is not in sync with the current mapping file.
จากนั้นฉันก็ดำเนินการคำสั่ง update
./vendor/bin/doctrine-module orm:schema-tool:update --force
ผลลัพธ์สำหรับสิ่งนั้นจะเป็นดังนี้:
Database schema updated successfully! "7" queries were executed
แต่ปัญหาคือ ไม่มีตารางที่สร้างในฐานข้อมูลของฉัน เกิดอะไรขึ้นกับเรื่องนี้?