Then, to seeing if I have understood it well. For my example, I have
two classes:
---------------------------------------------------
PersonsController
{attributes}
-model:Person
{methods}
+insertPerson(name,age,sex):void
+obtListPersons():Person[]
---------------------------------------------------
y
----------------------------------------------------
PersonModel
{attributes}
-id:int
-name:String
-age:int
-sex:String
{methods}
+Person(id,name,age,sex):Person
+obtListPersons():Person[]
----------------------------------------------------
Would it be like that?
It is strange for me that in the class ModeloPersona, has the builder
method of the class (+Person (id, name, age,sex):Person) and also the
method that returns all of the persons (+obtListPersons ():Person [])
because inside of a class only it must be its builder and the methods
that obtain or modify its attributes (for example: +obtname():String
and +setname (name:String):void). Or I am wrong?

I hope that you can solve to me these doubts.



On 16 mayo, 23:06, "Juan Miguel Paredes" <[EMAIL PROTECTED]>
wrote:
> On Sat, May 17, 2008 at 4:28 PM, Howard Glynn <[EMAIL PROTECTED]> wrote:
> > Perhaps this is what you are looking for
>
> >http://cakeexplorer.wordpress.com/2007/12/14/build-image-of-current-c...
> >http://cakeexplorer.files.wordpress.com/2007/12/model_bakery.png
>
> > Not tried it myself, filed on my list of things to do...
>
> It will definitely be a good start, but the script would need to be
> modified to draw the associations between controllers and models, as
> well, if I understood the op's question correctly
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to