#2 new
Rafał Filipek

Warning while populating table from fixtures

Reported by Rafał Filipek | November 20th, 2008 @ 10:20 PM

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');
}

No comments found

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Pages