Re: Implementing factory patterns in CakePHP

2012-06-16 Thread ankit patel
Ok Thank You SIr. I more thing Can you please tell me following thing: I have one table * messages * I have also take one table *book_favourites* I have also table book in which I have taken foreign Key user_id * * * * Now in *book_favorites *table I have foreign keys *book_id and user_id * Sam

Re: Implementing factory patterns in CakePHP

2012-06-14 Thread Jeremy Burns | Class Outfit
Chalk and cheese really. $actsAs (note the 's' after 'act' - common mistake) is a variable that defines any behaviours the model should use (act as). One such behaviour in Containable that allows you to define quite precisely what related models are included in your finds from this model. Jere

Re: Implementing factory patterns in CakePHP

2012-06-14 Thread ankit patel
Can u please tell me what is the diff between containable and actAs Thank You -- 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 unsubscr

Re: Implementing factory patterns in CakePHP

2012-06-13 Thread Ratty
Sorry this was wrong... you would have interface IProject {} interface ILocalProject extends IProject {} interface ISoftwareProject extends IProject {} interface IIssue {} interface IComplaint extends IIssue {} interface IBugReport extends IIssue {} cllass LocalModel extends AppModel implements

Re: Implementing factory patterns in CakePHP

2012-06-13 Thread Steve Found
e missed the point. Steve (Ratty) On 01/06/12 20:04, elitalon wrote: Hi, I've been reading a couple of articles about implementing factory patterns in CakePHP but I can't find a hint to solve my actual problem. There is one that tries to mimic these kind of patterns using behavio

Re: Implementing factory patterns in CakePHP

2012-06-12 Thread senser
Hi elitalon, You got a interesting situation. Please provide any details of solving this. Regards! On Friday, June 1, 2012 10:04:13 PM UTC+3, elitalon wrote: > > Hi, > > I've been reading a couple of articles about implementing factory patterns > in CakePHP but I can'

Re: Implementing factory patterns in CakePHP

2012-06-02 Thread stork
Possibly sounds like work for InheritableBehavior from https://github.com/CakeDC/utils and combination of "Single/Class Table Inheritance" for your models. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.c

Implementing factory patterns in CakePHP

2012-06-01 Thread elitalon
Hi, I've been reading a couple of articles about implementing factory patterns in CakePHP but I can't find a hint to solve my actual problem. There is one that tries to mimic these kind of patterns using behaviors<http://mamchenkov.net/wordpress/2010/02/17/cakephp-building-f