我在使用 Eloquent 的 Laravel 中遇到了一个错误,即:
SQLSTATE[42S02]: Base table or view not found: 1146 Table
'task_manager.rel_developers_projects' doesn't exist (SQL: insert into
`rel_developers_projects` (`project_id`, `developer_id`, `updated_at`, `created_at`)
values (?, ?, ?, ?)) (Bindings: array ( 0 => '1', 1 => '1', 2 => '2013-07-31 08:23:35', 3
=> '2013-07-31 08:23:35', ))
但是,模型称为 RelDevelopersProject,表称为 RelDevelopersProjects。
Eloquent 是否尝试将 CamelCased 名称转换为下划线?