for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Apps\ActiveRecord;
use Ffcms\Core\Arch\ActiveModel;
/**
* Class FeedbackPost. Active model for feedback requests posts.
* @package Apps\ActiveRecord
* @property int $id
* @property string $name
* @property string $email
* @property string $message
* @property int $readed
* @property int $closed
* @property string $hash
* @property int $user_id
* @property string $ip
* @property string $created_at
* @property string $updated_at
*/
class FeedbackPost extends ActiveModel
{
* Get all answers for this feedback post id
* @return \Illuminate\Database\Eloquent\Relations\HasMany|null
public function getAnswers()
if ($this->id === null) {
return null;
}
return $this->hasMany('Apps\ActiveRecord\FeedbackAnswer', 'feedback_id');