Thanks Marcelo, I do know you can define your way around it, but if you anyway are designing the database, then by following the standards you will avoid this task. Anands database design certainly was not near anykind that I would have designed, which is why I suggested Anand to follow the CakePHP conventions/standards.
Enjoy, John On Dec 4, 9:59 pm, Marcelo Andrade <[email protected]> wrote: > On Thu, Dec 3, 2009 at 3:22 AM, John Andersen <[email protected]> wrote: > > Sorry to say Anand, but your schema does not conform to what CakePHP > > expects, which makes it difficult to make it work with CakePHP, > > without specifying a lot of information. > > > Suggest you rethink your schema, so that: > > 1) It conforms to CakePHP (table names plural, foreign keys equal > > foreign key table name singular + underscore + 'id', etc.; > > Not really needed. If you cannot conform to Cake conventions, > just configure it. Model attributes like $useTable, $useDbConfig, > $primaryKey and $foreign_key for associations are your friends. > > http://book.cakephp.org/view/71/Model-Attributes > > Best regards. > > -- > MARCELO DE F. ANDRADE > Belem, PA, Amazonia, Brazil > Linux User #221105 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
