Exemplo n.º 1
0
 /**
  * @param $object
  * @param array $params
  * @return null|Object\Fieldcollection
  */
 public function load($object, $params = array())
 {
     if (!$this->getLazyLoading() or $params["force"]) {
         $container = new Object\Fieldcollection(null, $this->getName());
         $container->load($object);
         if ($container->isEmpty()) {
             return null;
         }
         return $container;
     }
     return null;
 }