私が使用しているデータベースのカスタム マッピングを実装しようとしていtablename_idますid。
2.0マニュアルからこれを収集しました:
class MyBeanFormatter implements RedBean_IBeanFormatter {
public function formatBeanID($type) {
return $type.'_id';
}
}
R::$writer->setBeanFormatter( new MyBeanFormatter );
3.0 では、インターフェースRedBean_IBeanFormatterも機能もありませんformatBeanID。3.0 のマニュアルでは、これについて詳しく説明していません。どんな助けでも