foreign key with constraint UQ (unique) On Wed, May 16, 2012 at 12:43 PM, Andrés Manikis <[email protected]>wrote:
> Hello. I have the following problem. > I have two model which share some data. > > Suppose I have a cat and a dog. Both of them are animals. > So I would like to extract all the common fields to a table named for > example common. > > I wanted to implement that using a hasOne relation but cake makes me put > the foreign key in the common table. I don't want that because I would have > to put a cat_id and a dog_id in the common table. > > Is there a way to create a hasOne relation putting the foreign key in the > current table? > > Thank you! > Andrés > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
