Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Comments.

  • Loading branch information...
commit df700de4d011066044dd48e4110aa1e02dca22b8 1 parent 3ecdafe
@gabordemooij authored
Showing with 15 additions and 1 deletion.
  1. +9 −1 RedBean/Facade.php
  2. +6 −0 RedBean/OODBBean.php
View
10 RedBean/Facade.php
@@ -1140,7 +1140,15 @@ public static function getRedBean() {
return self::$redbean;
}
-
+ /**
+ * Preloads certain properties for beans.
+ * Understands aliases.
+ *
+ * Usage: R::preload($books,array('coauthor'=>'author'));
+ *
+ * @param array $beans beans
+ * @param array $types types to load
+ */
public static function preload($beans,$types) {
foreach($types as $key => $type) {
$field = (is_numeric($key)) ? $type : $key;
View
6 RedBean/OODBBean.php
@@ -473,6 +473,12 @@ public function __set($property,$value) {
$this->properties[$property] = $value;
}
+ /**
+ * Sets a property directly, for internal use only.
+ *
+ * @param string $property property
+ * @param mixed $value value
+ */
public function setProperty($property,$value) {
$this->properties[$property] = $value;
}
Please sign in to comment.
Something went wrong with that request. Please try again.