Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Deprecated $schema->column in CakePHP #1616

Closed
gus0074 opened this issue Nov 12, 2018 · 1 comment
Closed

Deprecated $schema->column in CakePHP #1616

gus0074 opened this issue Nov 12, 2018 · 1 comment

Comments

@gus0074
Copy link

gus0074 commented Nov 12, 2018

Hello @fzaninotto, sorry I'm a newbie, CakePHP throw an error loop. Fixed it changing line 45 in:
cakephp\your-project\vendor\fzaninotto\faker\src\Faker\ORM\CakePHP\ColumnTypeGuesser.php
from:
$columnData = $schema->column($column);
to:
$columnData = $schema->getColumn($column);

pimjansen pushed a commit that referenced this issue Aug 27, 2019
This will avoid deprecation warnings by accessing
`getColumn` if the method exists. Otherwise access the old `column` method.

Solve #1616
@icanhazstring
Copy link
Contributor

@pimjansen @localheinz could be closed then with #1777 merged

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants