Permalink
Browse files

Implemented true/false return on load.

  • Loading branch information...
1 parent 6453813 commit 779c3dfe446b6da893be87b908d6be28345d1e01 @guilhermeblanco guilhermeblanco committed Jul 8, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Doctrine/Common/DataFixtures/ProxyReferenceRepository.php
@@ -106,16 +106,20 @@ public function unserialize($serializedData)
* Load data fixture reference repository
*
* @param string $baseCacheName Base cache name
+ *
+ * @return boolean
*/
public function load($baseCacheName)
{
$filename = $baseCacheName . '.ser';
if ( ! file_exists($filename) || ($serializedData = file_get_contents($filename)) === false) {
- return;
+ return false;
}
$this->unserialize($serializedData);
+
+ return true;
}
/**

0 comments on commit 779c3df

Please sign in to comment.