I was using KohanaPHP ORM but I can not use it from my database table structure, so use it with I need a framework or library ORM.
With Kohana I have to follow the naming convention
Any suggestions?
Thank you.
Code> & lt ;? Php square protects Model_Produto ORM {secure $ _table_name = 'produtos'; Protected $ _primary_key = 'pro_codigo'; Secure $ _has_one = array ('unidade' => array ('model' = & gt; 'unidade', 'foreign_key' => 'Unicodego')); }? & Gt; & Lt ;? Php square protects Model_Unidade ORM {secure $ _table_name = 'unidades'; Protected $ _primary_key = 'uni_codigo'; }? & Gt;
Actually, Kohana ORM is not limited to the case of OR's 3, you All things related to your relationships can be defined as I have explained here;
(Look at the code, not the explanation, because that person asked for varchar FKs)
Comments
Post a Comment