diff --git a/PROGRESS.md b/PROGRESS.md index 2de65671..65e36dce 100644 --- a/PROGRESS.md +++ b/PROGRESS.md @@ -13,10 +13,10 @@ The states for now defined as; | Configuration | Done | | Account | **TODO** | | Authentication | **TODO** | -| Certifications | Review | +| Certifications | **TODO** | | Changes | Done | -| Collections | Review | -| Companies | Review | +| Collections | Done | +| Companies | Done | | Credits | Review | | Discover | Review | | Find | Review | diff --git a/lib/Tmdb/Factory/CompanyFactory.php b/lib/Tmdb/Factory/CompanyFactory.php index b9ebaf0d..e47a5468 100644 --- a/lib/Tmdb/Factory/CompanyFactory.php +++ b/lib/Tmdb/Factory/CompanyFactory.php @@ -40,7 +40,7 @@ public function create(array $data = array()) $company->setLogoImage($this->getImageFactory()->createFromPath($data['logo_path'], 'logo_path')); } - return $this->hydrate(new Company(), $data); + return $this->hydrate($company, $data); } /** diff --git a/lib/Tmdb/Model/Company.php b/lib/Tmdb/Model/Company.php index f8161caf..8457b98c 100644 --- a/lib/Tmdb/Model/Company.php +++ b/lib/Tmdb/Model/Company.php @@ -25,11 +25,6 @@ class Company extends AbstractModel { private $name; private $parentCompany; - public function __construct() - { - $this->logo = new LogoImage(); - } - public static $_properties = array( 'description', 'headquarters',