You were right, in related table (carriers) there's not an id field.
That's why the table is just a joining table. Matter of fact id field
never been present in this table, and never this has been adviced as
warning.

Models are setted in this way:
Carrier belongsTo Season, Team, Player
Season, Team, Player hasMany Carrier

This is the carriers table
Array
(
    [player_id] => Array
        (
            [type] => integer
            [null] =>
            [default] =>
            [length] => 11
        )

    [team_id] => Array
        (
            [type] => integer
            [null] =>
            [default] =>
            [length] => 11
        )

    [season_id] => Array
        (
            [type] => integer
            [null] =>
            [default] =>
            [length] => 11
        )

    [shirtnumber] => Array
        (
            [type] => integer
            [null] =>
            [default] => 0
            [length] => 2
        )

    [gk] => Array
        (
            [type] => boolean
            [null] =>
            [default] => 0
            [length] => 1
            [comment] => goalkeeper
        )

    [role] => Array
        (
            [type] => boolean
            [null] =>
            [default] => 0
            [length] => 1
            [comment] => 0: simple / 1: vice-captain / 2: captain
        )

    [created] => Array
        (
            [type] => datetime
            [null] =>
            [default] =>
            [length] =>
        )

)

On 9 Apr, 19:37, cricket <[email protected]> wrote:
> On Sat, Apr 9, 2011 at 5:40 AM, Mariano C. <[email protected]> wrote:
> > Wherever I put this debug($this->MyModel::schema()) i get:
> > T_PAAMAYIM_NEKUDOTAYIM php error :(
>
> You shouldn't use the double colon syntax like that.
>
> debug($this->MyModel->schema());

-- 
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

Reply via email to