Skip to content

Commit

Permalink
Fixing bug in Company and clearing it
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Feb 8, 2014
1 parent 0e0731a commit baf1706
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions PROGRESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Factory/CompanyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
5 changes: 0 additions & 5 deletions lib/Tmdb/Model/Company.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit baf1706

Please sign in to comment.