This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GAME | |
{ | |
version = 0.23.5 | |
Title = dev (SANDBOX) | |
Description = No description available. | |
linkURL = | |
linkCaption = | |
Mode = 0 | |
Status = 1 | |
scene = 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/data/model/Relationship.php b/data/model/Relationship.php | |
index 0e9c184..77619a5 100644 | |
--- a/data/model/Relationship.php | |
+++ b/data/model/Relationship.php | |
@@ -208,7 +208,7 @@ class Relationship extends \lithium\core\Object { | |
$conditions = (array) $this->constraints(); | |
foreach ($this->key() as $from => $to) { | |
- if (!isset($object->{$from})) { | |
+ if ($object->{$from} === null) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Groups::all([ | |
'conditions' => [ | |
'users' => '_id_' | |
// or... | |
'users' => ['_id'] | |
] | |
]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function find($type, array $options = array()) | |
{ | |
// @todo: determine the Model to use instead of hard-coded 'User' | |
$options['conditions']['User.deleted'] = 0; | |
// @todo: add this condition for each 'With' relation instead of hard-coded 'Email' | |
$options['conditions']['Email.deleted'] = 0; | |
return parent::find($type, $options); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Users::all(array( | |
'with' => 'Email', | |
'conditions' => array( | |
'User.deleted' => 0, | |
'Email.deleted' => 0 | |
) | |
)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use lithium\analysis\Logger; | |
use lithium\data\Connections; | |
Logger::config([ | |
'default' => [ | |
'adapter' => 'File', | |
'file' => function() { return "combined.log"; }, | |
'format' => "{:timestamp} {:priority}\t{:message}\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace app\extensions\helper; | |
class Form extends \lithium\template\helper\Form { | |
/** | |
* String templates used by this helper. | |
* | |
* @var array |
NewerOlder