Sunday, April 10, 2011

Re: Strange error passing from windows to linux

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 <zijn.digi...@gmail.com> wrote:
> On Sat, Apr 9, 2011 at 5:40 AM, Mariano C. <mariano.calan...@gmail.com> 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate