Skip to content

Commit

Permalink
Merge pull request #74 from synchrone/3.3/develop
Browse files Browse the repository at this point in the history
Updating Kohana_ORM PHPDoc (refs #4447)
  • Loading branch information
zeelot committed Oct 13, 2012
2 parents 90f4204 + f7890c5 commit c2fc6f0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions classes/Kohana/ORM.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public static function factory($model, $id = NULL)

/**
* Database query builder
* @var Database_Query_Builder_Where
* @var Database_Query_Builder_Select
*/
protected $_db_builder;

Expand All @@ -248,7 +248,6 @@ public static function factory($model, $id = NULL)
* Constructs a new model and loads a record if given
*
* @param mixed $id Parameter for find or object to load
* @return void
*/
public function __construct($id = NULL)
{
Expand Down Expand Up @@ -606,6 +605,7 @@ public function __get($column)
* Override this method to add custom get behavior
*
* @param string $column Column name
* @throws Kohana_Exception
* @return mixed
*/
public function get($column)
Expand Down Expand Up @@ -705,7 +705,8 @@ public function __set($column, $value)
*
* @param string $column Column name
* @param mixed $value Column value
* @return void
* @throws Kohana_Exception
* @return ORM
*/
public function set($column, $value)
{
Expand Down Expand Up @@ -834,7 +835,7 @@ public function as_array()
* can be nested using 'object1:object2' syntax
*
* @param string $target_path Target model to bind to
* @return void
* @return ORM
*/
public function with($target_path)
{
Expand Down Expand Up @@ -953,6 +954,7 @@ protected function _build($type)
* Finds and loads a single database row into the object.
*
* @chainable
* @throws Kohana_Exception
* @return ORM
*/
public function find()
Expand All @@ -977,6 +979,7 @@ public function find()
/**
* Finds multiple database rows and returns an iterator of the rows found.
*
* @throws Kohana_Exception
* @return Database_Result
*/
public function find_all()
Expand Down Expand Up @@ -1251,6 +1254,7 @@ public function labels()
* Validates the current model's data
*
* @param Validation $extra_validation Validation object
* @throws ORM_Validation_Exception
* @return ORM
*/
public function check(Validation $extra_validation = NULL)
Expand Down Expand Up @@ -1281,6 +1285,7 @@ public function check(Validation $extra_validation = NULL)
/**
* Insert a new object to the database
* @param Validation $validation Validation object
* @throws Kohana_Exception
* @return ORM
*/
public function create(Validation $validation = NULL)
Expand Down Expand Up @@ -1340,6 +1345,7 @@ public function create(Validation $validation = NULL)
*
* @chainable
* @param Validation $validation Validation object
* @throws Kohana_Exception
* @return ORM
*/
public function update(Validation $validation = NULL)
Expand Down Expand Up @@ -1416,6 +1422,7 @@ public function save(Validation $validation = NULL)
* Deletes a single record while ignoring relationships.
*
* @chainable
* @throws Kohana_Exception
* @return ORM
*/
public function delete()
Expand Down Expand Up @@ -2082,7 +2089,7 @@ public function join($table, $type = NULL)
/**
* Adds "ON ..." conditions for the last created JOIN statement.
*
* @param mixed $ci column name or array($column, $alias) or object
* @param mixed $c1 column name or array($column, $alias) or object
* @param string $op logic operator
* @param mixed $c2 column name or array($column, $alias) or object
* @return $this
Expand Down

0 comments on commit c2fc6f0

Please sign in to comment.