Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Warning while populating table from fixtures

#2

In file fixtures.php on line 146:


if (in_array('Tree', $model->actsAs)) {
   $model->Behaviors->detach('Tree');
}

so if model doesn't have actsAs property You will see warning


Warning: in_array(): Wrong datatype for second argument in G:\Wamp\www\portal\users\vendors\shells\fixtures.php on line 146

solution


if (isset($model->actsAs) && in_array('Tree', $model->actsAs)) {
   $model->Behaviors->detach('Tree');
}

Reported by RafaƂ Filipek · November 20th, 2008 @ 10:20 PM

State: new
Milestone: none

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.