Hi all, i'm doing something stupid here but i can't realize it :P Please tell me why whis code works:
    public function loadEntity(){
        //Checking provided primary key ref syntax ok
        $id = $this->request->getQuery("id", "int", "");
          if($id == ""){
              throw new \Exception("Missing or malformed parameter for 'id'");
          }
        $Notification = $this->getUser()->getNotifications("id=$id")->getFirst();
        if(!$Notification){
            throw new \Exception("The requested object doesn't exists");
        }
        return $Notification;
    }While this not:
        $search_array = array('id=?0',
                        'bind' => array($id),
                        );
        $Notification = $this->getUser()->getNotifications($search_array)->getFirst();The first snippet returns the Related Id=$id child, the second reply "The requested object...".
Here the model function getNotifications:
        public function getNotifications($parameters=null){
            return $this->getRelated("Notifications", $parameters);
        }Please help me understand :) Regards Gianluca