Exemplo n.º 1
0
 /**
  * Convenience Method
  * @param RedBean_OODBBean $bean
  * @param string $type
  * @param string $sql
  * @param array $values
  * @return array $beans
  */
 public static function findLinks(RedBean_OODBBean $bean, $type, $sql = " id IN (:keys) ", $values = array())
 {
     $keys = self::$linkManager->getKeys($bean, $type);
     $sql = str_replace(":keys", implode(",", $keys), $sql);
     return self::find($type, $sql, $values);
 }
Exemplo n.º 2
0
Arquivo: rb.php Projeto: u007/FlexiPHP
 /**
  *
  * @param RedBean_OODBBean $bean
  * @param mixed $typeName
  */
 public static function breakLink(RedBean_OODBBean $bean, $typeName)
 {
     return self::$linkManager->breakLink($bean, $typeName);
 }