Grammar/Vocabulary fixes
Signed-off-by: Chris Berthe <chrisberthe@gmail.com>
This commit is contained in:
@@ -736,7 +736,7 @@ abstract class Model {
|
||||
{
|
||||
$meta = array('key', 'table', 'connection', 'sequence', 'per_page', 'timestamps');
|
||||
|
||||
// If the method is actually the name of a static property on the model we'll
|
||||
// If the method is actually the name of a static property on the model, we'll
|
||||
// return the value of the static property. This makes it convenient for
|
||||
// relationships to access these values off of the instances.
|
||||
if (in_array($method, $meta))
|
||||
@@ -746,7 +746,7 @@ abstract class Model {
|
||||
|
||||
$underscored = array('with', 'find');
|
||||
|
||||
// Some methods need to be accessed both staticly and non-staticly so we'll
|
||||
// Some methods need to be accessed both statically and non-statically so we'll
|
||||
// keep underscored methods of those methods and intercept calls to them
|
||||
// here so they can be called either way on the model instance.
|
||||
if (in_array($method, $underscored))
|
||||
|
||||
@@ -118,7 +118,7 @@ class Query {
|
||||
$new = new $class(array(), true);
|
||||
|
||||
// We need to set the attributes manually in case the accessible property is
|
||||
// set on the array which will prevent the mass assignemnt of attributes if
|
||||
// set on the array which will prevent the mass assignment of attributes if
|
||||
// we were to pass them in using the constructor or fill methods.
|
||||
$new->fill_raw($result);
|
||||
|
||||
@@ -141,7 +141,7 @@ class Query {
|
||||
}
|
||||
}
|
||||
|
||||
// The many to many relationships may have pivot table column on them
|
||||
// The many to many relationships may have pivot table columns on them
|
||||
// so we will call the "clean" method on the relationship to remove
|
||||
// any pivot columns that are on the model.
|
||||
if ($this instanceof Relationships\Has_Many_And_Belongs_To)
|
||||
@@ -199,7 +199,7 @@ class Query {
|
||||
foreach ($this->model_includes() as $include => $constraints)
|
||||
{
|
||||
// To get the nested includes, we want to find any includes that begin
|
||||
// the relationship and a dot, then we will strip off the leading
|
||||
// the relationship with a dot, then we will strip off the leading
|
||||
// nesting indicator and set the include in the array.
|
||||
if (starts_with($include, $relationship.'.'))
|
||||
{
|
||||
@@ -222,7 +222,7 @@ class Query {
|
||||
foreach ($this->model->includes as $relationship => $constraints)
|
||||
{
|
||||
// When eager loading relationships, constraints may be set on the eager
|
||||
// load definition; however, is none are set, we need to swap the key
|
||||
// load definition; however, if none are set, we need to swap the key
|
||||
// and the value of the array since there are no constraints.
|
||||
if (is_numeric($relationship))
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ class Has_Many_And_Belongs_To extends Relationship {
|
||||
$this->joining = $table ?: $this->joining($model, $associated);
|
||||
|
||||
// If the Pivot table is timestamped, we'll set the timestamp columns to be
|
||||
// fetched when the pivot table models are fetched by the developer else
|
||||
// fetched when the pivot table models are fetched by the developer, or else
|
||||
// the ID will be the only "extra" column fetched in by default.
|
||||
if (Pivot::$timestamps)
|
||||
{
|
||||
@@ -131,7 +131,7 @@ class Has_Many_And_Belongs_To extends Relationship {
|
||||
}
|
||||
|
||||
// Next we will take the difference of the current and given IDs and detach
|
||||
// all of the entities that exists in the current array but are not in
|
||||
// all of the entities that exist in the current array but are not in
|
||||
// the array of IDs given to the method, finishing the sync.
|
||||
$detach = array_diff($current, $ids);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user