-
How can you create a getter or setter for a nested attribute such as: $channel->theme->image->poster. I can't seem to find any documentation on this? Help please.
-
I am trying to perform a simple test using PHPUnit but I am getting this error:
Fatal error: Class 'Moloquent' not found in /Users/juanjoselainezreche/CreativeHotHouse/mongoCasper/app/models/User.php…
-
I have a MySql model 'Subject' that uses a "hasOne" relationship with a Mongo document 'SubjectDoc'. As per the instructions, Subject extends from Moloquent, connection type mysql, with a method:
```…
-
I have moved my models from the models folder into my proprietary ACME folder and namespace. My model extends Moloquent (using the alias), but I found that for some reason I now need to include the na…
-
How can I get a count of embedded documents?
Given: MyStore embedsMany Books
$myStore->books()->count() returns `int 1` when I am expecting `3`.
*\* Update: *\* figured it out. I need to be using:
…
-
I tried using the Moloquent as below which works within eloquent to return things as expected.
//Should return the given value in the column name for the given find id
Model::find($id)->first()->colum…
-
I am trying to put a proper convention into place for my current (new) project, and am struggling with worrying about casing for database naming conventions vs code naming conventions.
I believe Eloq…
-
SoftDelete is implemented?
I have:
``` php
Schema::create('comments', function($t)
{
$t->softDeletes();
});
```
``` php
class Comment extends Moloquent {
protected…
-
I can not seem to figure out how to explicitly set the _id. In the MongoDB docs it says that it is not a problem:
```
$employee = new Employee();
$employee->_id = 123456;
$employee->name = "Shawn";
…